Share via


IDepthFrame::AccessUnderlyingBuffer Method

Gets a pointer to the depth frame data.

Syntax

public:
HRESULT AccessUnderlyingBuffer(
         UINT *capacity,
         UINT16 **buffer
)

Parameters

  • capacity
    Type: UINT
    [out] When this method returns, contains the size of the frame data buffer in bytes.
  • buffer
    Type: UINT16
    [out] When this method returns, contains the pointer to 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