I have been trying to get color of a pixel, and have used the examples found in the forum. But it seems like using the methods is not giving the right result for the alpha channel.
The files i am having problems with is
returns 255, where
returns 0 for the alpha channel
The file that return 0 is not even transparent - is there a way to better determine color and transparency.
This is my code.
Pixel pixel = image.GetReadOnlyPixels().GetPixel(x, y);
red = pixel.GetChannel(0);
green = pixel.GetChannel(1);
blue = pixel.GetChannel(2);
alpha = pixel.GetChannel(3);