BodyIndexFrame.CopyFrameDataToArray Method
Copies the body index frame data into the array provided.
Syntax
public:
void CopyFrameDataToArray(
out Array<unsigned char>^ frameData
)
public void CopyFrameDataToArray (
out Array<byte>[] frameData
)
bodyIndexFrame.copyFrameDataToArray();
Parameters
frameData
[C++]
[C#]
[JavaScript]Type: unsigned char
Type: byte
Type: NumberThe array to fill.
Remarks
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.
Requirements
Namespace: WindowsPreview.Kinect
Metadata: windowspreview.kinect.winmd