Ejemplo n.º 1
0
			public DataReceivedEventArgs(DateTime timestamp, ImageMap b)
			{
				this.Timestamp = timestamp;
				this.Image = b;
			}
Ejemplo n.º 2
0
		/// <summary>
		/// Updates the next frame imagemap that's waiting for data with any state changes
		/// </summary>
		protected void UpdateNextFrameImageMap()
		{
			if(this.DataBuffer == IntPtr.Zero)
			{
				// have to set our own buffer as the video buffer
				this.nextFrameImage = new ImageMap(this.DataFormat);
				KinectNative.freenect_set_video_buffer(this.parentDevice.devicePointer, this.nextFrameImage.DataPointer);
			}
			else	
			{
				// already have a buffer from user
				this.nextFrameImage = new ImageMap(this.DataFormat, this.DataBuffer);
			}
		}