|
@@ -128,13 +128,10 @@ namespace bbiwarg
|
|
|
|
|
|
IntPtr imageData = depthImage.Value.Raw;
|
|
|
|
|
|
- short[] tmp = new short[width * height];
|
|
|
- Marshal.Copy(imageData, tmp, 0, width * height);
|
|
|
+ short[] depthData = new short[width * height];
|
|
|
+ Marshal.Copy(imageData, depthData, 0, width * height);
|
|
|
|
|
|
- ushort[] data = new ushort[width * height];
|
|
|
- Buffer.BlockCopy(tmp, 0, data, 0, numBytes);
|
|
|
-
|
|
|
- return new DepthImage(width, height, data);
|
|
|
+ return new DepthImage(width, height, depthData);
|
|
|
}
|
|
|
|
|
|
private void checkHandIndex(uint handIndex)
|