The getRGB() method returns a single int. How can I get individually the red, green and blue colors all as the values between 0 and 255?
getRGB()
You'll need some basic binary arithmetic to split it up:
int blue = rgb & 0xFF; int green = (rgb >> 8) & 0xFF; int red = (rgb >> 16) & 0xFF;
(Or possibly the other way round, I honestly can't remember and the documentation isn't giving me an instant answer)