org.java_lcw.jil
public static class Image.Color extends java.lang.Object
Constructor and Description |
---|
Image.Color()
Construct a Color object with no colors set (everything is 0)
|
Image.Color(byte grey)
Construct the color with grey values set
|
Image.Color(byte red,
byte green,
byte blue)
Construct the color with RGB values set
|
Image.Color(byte red,
byte green,
byte blue,
byte alpha)
Construct the color with RGBA values set
|
Modifier and Type | Method and Description |
---|---|
byte |
getAlpha() |
byte |
getBlue() |
byte |
getGreen() |
byte |
getGrey() |
byte |
getRed() |
void |
setAlpha(byte a)
Set the alpha value on this color object
|
void |
setBlue(byte b)
Set the blue value on this color object
|
void |
setGreen(byte g)
Set the green value on this color object
|
void |
setGrey(byte g)
Set the Grey value on this Color Object
|
void |
setL(byte g)
Set the grey value on this color object(overrides all rgb values)
|
void |
setRed(byte r)
Set the Red value on this color object
|
void |
setRGB(byte r,
byte g,
byte b)
Set the RGB Value on this Color Object
|
void |
setRGBA(byte r,
byte g,
byte b,
byte a)
Set the RGBA Value on this Color Object
|
java.lang.String |
toString() |
public Image.Color(byte red, byte green, byte blue)
red
- green
- blue
- public Image.Color(byte red, byte green, byte blue, byte alpha)
red
- green
- blue
- alpha
- public Image.Color(byte grey)
grey
- public Image.Color()
public void setBlue(byte b)
b
- public byte getBlue()
public void setRed(byte r)
r
- public byte getRed()
public void setGreen(byte g)
g
- public byte getGreen()
public void setAlpha(byte a)
a
- public byte getAlpha()
public void setRGB(byte r, byte g, byte b)
r
- g
- b
- public void setRGBA(byte r, byte g, byte b, byte a)
r
- g
- b
- a
- public void setGrey(byte g)
g
- public byte getGrey()
public void setL(byte g)
g
- public java.lang.String toString()
toString
in class java.lang.Object