C# Класс Microsoft.Samples.Kinect.RecordAndPlaybackBasics.KinectDepthView

Visualizes the Kinect Depth stream for display in the UI
Наследование: IDisposable
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
Dispose ( ) : void

Disposes the DepthFrameReader

KinectDepthView ( Microsoft.Kinect.KinectSensor kinectSensor ) : System

Initializes a new instance of the KinectDepthView class

Приватные методы

Метод Описание
ProcessDepthFrameData ( IntPtr depthFrameData, uint depthFrameDataSize, ushort minDepth, ushort maxDepth ) : void

Directly accesses the underlying image buffer of the DepthFrame 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 depthFrameData pointer.

Reader_DepthFrameArrived ( object sender, DepthFrameArrivedEventArgs e ) : void

Handles the depth frame data arriving from the sensor

RenderDepthPixels ( ) : void

Renders color pixels into the writeableBitmap.

Описание методов

Dispose() публичный Метод

Disposes the DepthFrameReader
public Dispose ( ) : void
Результат void

KinectDepthView() публичный Метод

Initializes a new instance of the KinectDepthView class
public KinectDepthView ( Microsoft.Kinect.KinectSensor kinectSensor ) : System
kinectSensor Microsoft.Kinect.KinectSensor Active instance of the Kinect sensor
Результат System