Share via


DepthImageFrameReadyEventArgs.OpenDepthImageFrame Method

Kinect for Windows 1.5, 1.6, 1.7, 1.8

Gets the most recent frame of depth data.

Syntax

public DepthImageFrame OpenDepthImageFrame ()
'Declaration
Public Function OpenDepthImageFrame As DepthImageFrame 

Return Value

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

Remarks

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

Requirements

Namespace: Microsoft.Kinect

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

See Also

Reference

DepthImageFrameReadyEventArgs Class
DepthImageFrameReadyEventArgs Members
Microsoft.Kinect Namespace