| Modifier and Type | Field and Description |
|---|---|
protected short |
blue |
protected short |
green |
protected short |
red |
| Constructor and Description |
|---|
RGB(int rgb)
Create an
RGB record. |
RGB(int red,
int green,
int blue)
Create an
RGB record. |
| Modifier and Type | Method and Description |
|---|---|
short |
getBlue()
Get blue component.
|
short |
getGreen()
Get green component.
|
short |
getRed()
Get red component.
|
String |
toString() |
protected final short red
protected final short green
protected final short blue
public RGB(int red,
int green,
int blue)
RGB record.red - red valuegreen - green valueblue - blue valuepublic RGB(int rgb)
RGB record.rgb - rgb integer valueCopyright © 2023 The Apache Software Foundation. All rights reserved.