A simple question involving the color of a pixel?

I'm just wondering, I'm using a BufferedImage to load an image and retrieve the pixels by their location in an image. I looked through the APIs, but I can't seem to figure out how to find the shade of each pixel. I understand that each color has a range within the possibilities of the int returned in the method getRGB(). Does the range denote the shade? Or does the alpha value perhaps? I'm not sure. Any help would be appreciated. Thanks!

[452 byte] By [arlorna] at [2007-10-3 6:15:36]
# 1

What do you mean by the "shade"? Do you mean hue?

You might want to look at the HSBtoRGB and RGBtoHSB methods. HSB is a way to describe colors via their hue, saturation, and brightness.

The alpha value indicates the transparency of the pixel.

Just out of curiosity, what are you doing?

paulcwa at 2007-7-15 0:59:56 > top of Java-index,Java Essentials,Java Programming...