java.awt.color
public abstract class ColorSpace extends Object implements Serializable
Since: 1.2
Field Summary | |
---|---|
static int | CS_CIEXYZ |
static int | CS_GRAY |
static int | CS_LINEAR_RGB |
static int | CS_PYCC |
static int | CS_sRGB |
static int | TYPE_2CLR |
static int | TYPE_3CLR |
static int | TYPE_4CLR |
static int | TYPE_5CLR |
static int | TYPE_6CLR |
static int | TYPE_7CLR |
static int | TYPE_8CLR |
static int | TYPE_9CLR |
static int | TYPE_ACLR |
static int | TYPE_BCLR |
static int | TYPE_CCLR |
static int | TYPE_CMY |
static int | TYPE_CMYK |
static int | TYPE_DCLR |
static int | TYPE_ECLR |
static int | TYPE_FCLR |
static int | TYPE_GRAY |
static int | TYPE_HLS |
static int | TYPE_HSV |
static int | TYPE_Lab |
static int | TYPE_Luv |
static int | TYPE_RGB |
static int | TYPE_XYZ |
static int | TYPE_YCbCr |
static int | TYPE_Yxy |
Constructor Summary | |
---|---|
protected | ColorSpace(int type, int numcomponents) |
Method Summary | |
---|---|
abstract float[] | fromCIEXYZ(float[] colorvalue) |
abstract float[] | fromRGB(float[] rgbvalue) |
static ColorSpace | getInstance(int colorspace) |
float | getMaxValue(int idx) |
float | getMinValue(int idx) |
String | getName(int idx) |
int | getNumComponents() |
int | getType() |
boolean | isCS_sRGB() |
abstract float[] | toCIEXYZ(float[] colorvalue) |
abstract float[] | toRGB(float[] colorvalue)
Transforms a color value assumed to be in this ColorSpace into a value in
the default CS_sRGB color space.
|
Since: 1.4
Since: 1.4
Throws: ArrayIndexOutOfBoundsException If array length is not at least the number of components in this ColorSpace.