BodyIndexFrame.CopyFrameDataToArray Method

Copies the body index frame data into the array provided.

public:
void CopyFrameDataToArray(
         out Array<unsigned char>^ frameData
)

Parameters

frameData
[C++] 
[C#] 
[JavaScript] 
Type: unsigned char
Type: byte
Type: Number
 
The array to fill.

Allocate the frameData array before calling this method. It should have the same number of elements as the depth frame has depth pixels (512px by 424px). Each array position that represents a depth pixel that belongs to a body will contain an index into the array of bodies in the frame. Array positions that correspond to depth pixels that do not belong to a body will contain the value 255.

Namespace: WindowsPreview.Kinect
Metadata: windowspreview.kinect.winmd

Community Additions

ADD
Show: