|
@@ -139,14 +139,17 @@ namespace bbiwarg.DataSource
|
|
|
|
|
|
public ColorImage getColorImage()
|
|
|
{
|
|
|
- Iisu.Data.IImageInfos imageInfos = depthImage.Value.ImageInfos;
|
|
|
+ Iisu.Data.IImageInfos imageInfos = colorImage.Value.ImageInfos;
|
|
|
int width = (int)imageInfos.Width;
|
|
|
int height = (int)imageInfos.Height;
|
|
|
int numBytes = (int)imageInfos.BytesRaw;
|
|
|
|
|
|
- Console.WriteLine("width: " + width + " height: " + height + " numBytes: " + numBytes);
|
|
|
+ IntPtr imageData = colorImage.Value.Raw;
|
|
|
+
|
|
|
+ byte[] colorData = new byte[numBytes];
|
|
|
+ Marshal.Copy(imageData, colorData, 0, numBytes);
|
|
|
|
|
|
- return new ColorImage();
|
|
|
+ return new ColorImage(width, height, colorData);
|
|
|
}
|
|
|
|
|
|
private void checkHandIndex(uint handIndex)
|