示例#1
0
        internal static byte[] GetPixelArrayFrame(this BodyIndexFrame bodyIndexFrame)
        {
            var frameData = new byte[bodyIndexFrame.FrameDescription.LengthInPixels];
            var pixels    = bodyIndexFrame.GetNewPixelArray();

            bodyIndexFrame.CopyToFrameToPixelArray(ref frameData, ref pixels);

            return(pixels);
        }