| Constructor and Description |
|---|
RGB(int r,
int g,
int b) |
RGB(int r,
int g,
int b,
int a) |
| Modifier and Type | Method and Description |
|---|---|
int |
a()
Returns the alpha component in the range 0-255.
|
int |
b()
Returns the blue component in the range 0-255 in the default sRGB
space.
|
boolean |
equals(Object o) |
int |
g()
Returns the green component in the range 0-255 in the default sRGB
space.
|
int |
hashCode() |
int |
r()
Returns the red component in the range 0-255 in the default sRGB
space.
|
static RGB |
rgb(String stringPresentation) |
int |
rgba()
Returns the RGB value representing the color in the default sRGB
ColorModel. |
String |
toString() |
public int r()
public int g()
public int b()
public int a()
public int rgba()
ColorModel.
(Bits 24-31 are alpha, 16-23 are red, 8-15 are green, 0-7 are
blue).Copyright © 2014. All Rights Reserved.