public class Color
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
int |
b
Blue channel's component.
|
static Color |
Black
Black.
|
static Color |
Blue
Blue.
|
static Color |
Cyan
Cyan.
|
static Color |
DarkGray
Dark Gray.
|
int |
g
Green channel's component.
|
static Color |
Gray
Gray.
|
static Color |
Green
Green.
|
static Color |
LightGray
Light Gray.
|
static Color |
Magenta
Magenta.
|
static Color |
Orange
Orange.
|
static Color |
Pink
Pink.
|
int |
r
Red channel's component.
|
static Color |
Red
Red.
|
static Color |
White
White.
|
static Color |
Yellow
Yellow.
|
| Constructor and Description |
|---|
Color()
Initialize a new instance of the Color class.
|
Color(int rgb)
Initialize a new instance of the Color class.
|
Color(int[] rgb)
Initialize a new instance of the Color class.
|
Color(int red,
int green,
int blue)
Initialize a new instance of the Color class.
|
| Modifier and Type | Method and Description |
|---|---|
static int |
Count(FastBitmap fastBitmap)
Count many colors has in the image.
|
static boolean |
isEqual(Color c1,
Color c2)
Compare two colors.
|
public static final Color Black
public static final Color Blue
public static final Color Cyan
public static final Color DarkGray
public static final Color Gray
public static final Color Green
public static final Color LightGray
public static final Color Magenta
public static final Color Orange
public static final Color Pink
public static final Color Red
public static final Color Yellow
public static final Color White
public int r
public int g
public int b
public Color()
public Color(int red,
int green,
int blue)
red - Red component.green - Green component.blue - Blue component.public Color(int[] rgb)
rgb - RGB array.public Color(int rgb)
rgb - Packed RGB.public static int Count(FastBitmap fastBitmap)
fastBitmap - Image to be procesed.