ColorImageFrameReadyEventArgs.OpenColorImageFrame Method

Kinect for Windows 1.5, 1.6, 1.7, 1.8

Gets the most recent frame of color data.

public ColorImageFrame OpenColorImageFrame ()

Return Value

Type: ColorImageFrame
A frame of color data in a new ColorImageFrame object, or NULL if the data is no longer available.

For an example, see Implement an event handler.

If the function is successful and returns a ColorImageFrame object, call Dispose.

Namespace: Microsoft.Kinect
Assembly: Microsoft.Kinect (in microsoft.kinect.dll)