/// <summary> /// Display frames /// </summary> /// <param name="frameDepth16">gray16</param> /// <param name="frameMapDepthToColor">rgb32</param> void DisplayFrames(byte[] frameColo32, ushort[] frameDepth16, byte[] frameMapDepthToColor) { //-------------------------------------------- // Display the depth frame //-------------------------------------------- DIP.BufferClone(frameDepth16, buffDepth16Mul); DIP.BufferMultiplyRange(buffDepth16Mul, 20); // Update the bitmap Util.UpdateOutBitmap(this.bitmapOutDepth, buffDepth16Mul); //-------------------------------------------- // Display the colored depth frame //-------------------------------------------- // Update the bitmap Util.UpdateOutBitmap(this.bitmapOutColorFrame, 4, frameColo32); Util.UpdateOutBitmap(this.bitmapOutMapDepthToColor, 4, frameMapDepthToColor); }