C# Class Microsoft.Samples.Kinect.RecordAndPlaybackBasics.KinectBodyIndexView

Visualizes the Kinect BodyIndex stream for display in the UI
Inheritance: IDisposable
Exibir arquivo Open project: angelaHillier/RecordAndPlaybackBasics-WPF Class Usage Examples

Public Methods

Method Description
Dispose ( ) : void

Disposes the BodyIndexFrameReader

KinectBodyIndexView ( KinectSensor kinectSensor ) : System

Initializes a new instance of the KinectBodyIndexView class

Private Methods

Method Description
ProcessBodyIndexFrameData ( IntPtr bodyIndexFrameData, uint bodyIndexFrameDataSize ) : void

Directly accesses the underlying image buffer of the BodyIndexFrame to create a displayable bitmap. This function requires the /unsafe compiler option as we make use of direct access to the native memory pointed to by the bodyIndexFrameData pointer.

Reader_BodyIndexFrameArrived ( object sender, BodyIndexFrameArrivedEventArgs e ) : void

Handles the body index frame data arriving from the sensor

RenderBodyIndexPixels ( ) : void

Renders color pixels into the writeableBitmap.

Method Details

Dispose() public method

Disposes the BodyIndexFrameReader
public Dispose ( ) : void
return void

KinectBodyIndexView() public method

Initializes a new instance of the KinectBodyIndexView class
public KinectBodyIndexView ( KinectSensor kinectSensor ) : System
kinectSensor KinectSensor Active instance of the Kinect sensor
return System