conamx#32581
Hi…
I was able to read 8-bit JPG (24bpp RGB) pixels using C# and the pixel values are in the range of 0-255 which is normal as 2^8=256.
Following is the code I used to access 8 bit image pixel values in C#:
Please let me know if I can read 16-bit TIFF (48bpp RGB) pixel values using GM and what would be the range of those pixel values.
Thanks.
I was able to read 8-bit JPG (24bpp RGB) pixels using C# and the pixel values are in the range of 0-255 which is normal as 2^8=256.
Following is the code I used to access 8 bit image pixel values in C#:
for (int x = 0; x < image.width; x++)
{
for (int y = 0; y < image.height; y++)
{
int redValue = image.GetPixel(x, y).R;
int greenValue = image.GetPixel(x, y).G;
int blueValue = image.GetPixel(x, y).B;
//Do something with redValue, greenValue, blueValue here
}
}
Please let me know if I can read 16-bit TIFF (48bpp RGB) pixel values using GM and what would be the range of those pixel values.
Thanks.