Share via


IDepthFrame::CopyFrameDataToArray Method

Copies the depth frame data to an unsigned array.

Syntax

public:
HRESULT CopyFrameDataToArray(
         UINT capacity,
         UINT16 *frameData
)

Parameters

  • capacity
    Type: UINT
    The size of the array.
  • frameData
    Type: UINT16
    [out] The array to which to copy the depth frame data.

Return value

Type: HRESULT
Returns S_OK if successful; otherwise, returns a failure code.

Requirements

Header: kinect.h

Library: kinect20.lib