Share via


ColorImageFrameReadyEventArgs.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

For an example, see Implement an event handler.

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

Requirements

Namespace: Microsoft.Kinect

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

See Also

Reference

ColorImageFrameReadyEventArgs Class
ColorImageFrameReadyEventArgs Members
Microsoft.Kinect Namespace