Package jxl.format
Class RGB
java.lang.Object
jxl.format.RGB
A structure which contains the RGB values for a particular colour
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
RGB
public RGB(int r, int g, int b) Constructor- Parameters:
r
- the red componentg
- the green componentb
- the blue component
-
-
Method Details
-
getRed
public int getRed()Accessor for the red component- Returns:
- the red component of the colour, between 0 and 255
-
getGreen
public int getGreen()Accessor for the green component- Returns:
- the green component of the colour, between 0 and 255
-
getBlue
public int getBlue()Accessor for the blue component- Returns:
- the blue component of the colour, between 0 and 255
-