|
||||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
java.lang.ObjectPictureColor
PictureColor - A color of a picture element (pixel)
Picture,
Image,
PictureUtil| Field Summary | |
static PictureColor |
BLACK
|
static PictureColor |
BLUE
|
static PictureColor |
CYAN
|
static PictureColor |
GRAY
|
static PictureColor |
GREEN
|
static PictureColor |
MAGENTA
|
static PictureColor |
RED
|
static PictureColor |
WHITE
|
static PictureColor |
YELLOW
|
| Constructor Summary | |
PictureColor(double red,
double green,
double blue)
Construct a new color from red, green and blue components each in the range [0.0 - 1.0] |
|
PictureColor(int rgb)
Primarily for internal use. |
|
| Method Summary | |
double |
getBlue()
Determines the blue color component of this pixel. |
double |
getGreen()
Determines the green color component of this pixel. |
double |
getRed()
Determines the red color component of this pixel. |
int |
getRGB()
Primarily for internal use. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static PictureColor WHITE
public static PictureColor BLACK
public static PictureColor RED
public static PictureColor BLUE
public static PictureColor GREEN
public static PictureColor YELLOW
public static PictureColor CYAN
public static PictureColor MAGENTA
public static PictureColor GRAY
| Constructor Detail |
public PictureColor(double red,
double green,
double blue)
public PictureColor(int rgb)
| Method Detail |
public int getRGB()
public double getRed()
public double getGreen()
public double getBlue()
public java.lang.String toString()
|
||||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||