I'm trying to get the 16-bit integer unsigned value for a pixel in an image using JAVA. I'm using:
int d = img.getRGB(x, y);
I get numbers like this -16744032, I don't think that getRGB is the right method to use, along with that it is signed.
Note: I don't want to convert it to RGB.
all that I want is: 16-bit Integer unsigned value for a pixel.
UPDATE: what I want is not a very complicated method that has nothing to do with colors at all.