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

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

Méthodes publiques

Méthode Description
Dispose ( ) : void

Disposes the BodyIndexFrameReader

KinectBodyIndexView ( KinectSensor kinectSensor ) : System

Initializes a new instance of the KinectBodyIndexView class

Private Methods

Méthode 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 méthode

Disposes the BodyIndexFrameReader
public Dispose ( ) : void
Résultat void

KinectBodyIndexView() public méthode

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