Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
MSDN Library

INuiSensor::NuiImageStreamReleaseFrame Method

Releases a frame of data from a stream.

public:
HRESULT NuiImageStreamReleaseFrame(
         HANDLE hStream,
         NUI_IMAGE_FRAME *pImageFrame
)

Parameters

hStream
Type: HANDLE
[in] A handle to the stream that contains the frame to release.
Hh855478.note(en-us,IEB.10).gifNote
You must open the stream by calling the NuiImageStreamOpen method, before calling NuiImageStreamReleaseFrame.
pImageFrame
Type: NUI_IMAGE_FRAME
[in] A pointer to the frame to release.

Return Value

Type: HRESULT
Returns S_OK if successful; otherwise, returns one of the failure codes in the following table.
E_INVALIDARG The value of the hStream or the pImageFrame parameter is NULL.
E_NOINTERFACE The pFrameTexture member of the pImageFrame parameter is NULL.
E_NUI_DEVICE_NOT_READY The Kinect has not been initialized. Refer to NuiInitialize.

Hh855478.note(en-us,IEB.10).gifImportant
Reset the notification event for the stream, before calling NuiImageStreamReleaseFrame.

Header: Declared in NuiSensor.h, however, include NuiApi.h in your project.

Community Additions

Show:
© 2015 Microsoft