Color.getRGB

Color.getRGB

Class Overview | Class Members | This Package | All Packages

Syntax
public int getRGB()
Description
Gets the RGB value representing the color in the default RGB ColorModel. The red, green, and blue components of the color are each scaled to be a value between 0 (abscence of the color) and 255 (complete saturation). Bits 24-31 of the returned integer are 0xff, bits 16-23 are the red value, bit 8-15 are the green value, and bits 0-7 are the blue value.

See Also
getRGBdefault, getRed, getGreen, getBlue