Share via


AllFramesReadyEventArgs.OpenColorImageFrame Method

Kinect for Windows 1.5, 1.6, 1.7, 1.8

Gets the most recent frame of color data.

Syntax

public ColorImageFrame OpenColorImageFrame ()
'Declaration
Public Function OpenColorImageFrame As ColorImageFrame 

Return Value

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

Remarks

When you are done using the ColorImageFrame object call Dispose.

Requirements

Namespace: Microsoft.Kinect

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

See Also

Reference

AllFramesReadyEventArgs Class
AllFramesReadyEventArgs Members
Microsoft.Kinect Namespace