Share via


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

When you are done using the DepthImageFrame object call Dispose.

Requirements

Namespace: Microsoft.Kinect

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

See Also

Reference

AllFramesReadyEventArgs Class
AllFramesReadyEventArgs Members
Microsoft.Kinect Namespace