|
@@ -25,18 +25,17 @@ namespace bbiwarg.Test
|
|
|
{
|
|
|
ColorImage image = source.getColorImage();
|
|
|
|
|
|
- /*Bitmap bm = new Bitmap(image.getWidth(), image.getHeight());
|
|
|
+ Bitmap bm = new Bitmap(image.getWidth(), image.getHeight());
|
|
|
for (int x = 0; x < image.getWidth(); ++x)
|
|
|
{
|
|
|
for (int y = 0; y < image.getHeight(); ++y)
|
|
|
{
|
|
|
- int value = (int) (image.getDepth(x, y) / 1000.0 * 255.0) % 256;
|
|
|
- bm.SetPixel(x, y, Color.FromArgb(255, value, value, value));
|
|
|
+ bm.SetPixel(x, y, Color.FromArgb(image.getA(x, y), image.getR(x, y), image.getG(x, y), image.getB(x, y)));
|
|
|
}
|
|
|
}
|
|
|
|
|
|
bm.Save("test." + j + ".png");
|
|
|
- j++;*/
|
|
|
+ j++;
|
|
|
}
|
|
|
|
|
|
source.releaseFrame();
|