java.lang.Objectjava.awt.color.ColorSpace
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
ICC_ColorSpace
For purposes of the methods in this class, colors are represented as arrays of color components represented as floats in a normalized range defined by each ColorSpace. For many ColorSpaces (e.g. sRGB), this range is 0.0 to 1.0. However, some ColorSpaces have components whose values have a different range. Methods are provided to inquire per component minimum and maximum normalized values.
Several variables are defined for purposes of referring to color space types (e.g. TYPE_RGB, TYPE_XYZ, etc.) and to refer to specific color spaces (e.g. CS_sRGB and CS_CIEXYZ). sRGB is a proposed standard RGB color space. For more information, see http://www.w3.org/pub/WWW/Graphics/Color/sRGB.html .
The purpose of the methods to transform to/from the well-defined CIEXYZ color space is to support conversions between any two color spaces at a reasonably high degree of accuracy. It is expected that particular implementations of subclasses of ColorSpace (e.g. ICC_ColorSpace) will support high performance conversion based on underlying platform color management systems.
The CS_CIEXYZ space used by the toCIEXYZ/fromCIEXYZ methods can be described as follows:
CIEXYZ viewing illuminance: 200 lux viewing white point: CIE D50 media white point: "that of a perfectly reflecting diffuser" -- D50 media black point: 0 lux or 0 Reflectance flare: 1 percent surround: 20percent of the media white point media description: reflection print (i.e., RLAB, Hunt viewing media) note: For developers creating an ICC profile for this conversion space, the following is applicable. Use a simple Von Kries white point adaptation folded into the 3X3 matrix parameters and fold the flare and surround effects into the three one-dimensional lookup tables (assuming one uses the minimal model for monitors).
Field Summary | ||
---|---|---|
static final long | serialVersionUID | |
public static final int | TYPE_XYZ | Any of the family of XYZ color spaces. |
public static final int | TYPE_Lab | Any of the family of Lab color spaces. |
public static final int | TYPE_Luv | Any of the family of Luv color spaces. |
public static final int | TYPE_YCbCr | Any of the family of YCbCr color spaces. |
public static final int | TYPE_Yxy | Any of the family of Yxy color spaces. |
public static final int | TYPE_RGB | Any of the family of RGB color spaces. |
public static final int | TYPE_GRAY | Any of the family of GRAY color spaces. |
public static final int | TYPE_HSV | Any of the family of HSV color spaces. |
public static final int | TYPE_HLS | Any of the family of HLS color spaces. |
public static final int | TYPE_CMYK | Any of the family of CMYK color spaces. |
public static final int | TYPE_CMY | Any of the family of CMY color spaces. |
public static final int | TYPE_2CLR | Generic 2 component color spaces. |
public static final int | TYPE_3CLR | Generic 3 component color spaces. |
public static final int | TYPE_4CLR | Generic 4 component color spaces. |
public static final int | TYPE_5CLR | Generic 5 component color spaces. |
public static final int | TYPE_6CLR | Generic 6 component color spaces. |
public static final int | TYPE_7CLR | Generic 7 component color spaces. |
public static final int | TYPE_8CLR | Generic 8 component color spaces. |
public static final int | TYPE_9CLR | Generic 9 component color spaces. |
public static final int | TYPE_ACLR | Generic 10 component color spaces. |
public static final int | TYPE_BCLR | Generic 11 component color spaces. |
public static final int | TYPE_CCLR | Generic 12 component color spaces. |
public static final int | TYPE_DCLR | Generic 13 component color spaces. |
public static final int | TYPE_ECLR | Generic 14 component color spaces. |
public static final int | TYPE_FCLR | Generic 15 component color spaces. |
public static final int | CS_sRGB | The sRGB color space defined at http://www.w3.org/pub/WWW/Graphics/Color/sRGB.html . |
public static final int | CS_LINEAR_RGB | A built-in linear RGB color space. This space is based on the same RGB primaries as CS_sRGB, but has a linear tone reproduction curve. |
public static final int | CS_CIEXYZ | The CIEXYZ conversion color space defined above. |
public static final int | CS_PYCC | The Photo YCC conversion color space. |
public static final int | CS_GRAY | The built-in linear gray scale color space. |
Constructor: |
---|
|
Method from java.awt.color.ColorSpace Summary: |
---|
fromCIEXYZ, fromRGB, getInstance, getMaxValue, getMinValue, getName, getNumComponents, getType, isCS_CIEXYZ, isCS_sRGB, toCIEXYZ, toRGB |
Methods from java.lang.Object: |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method from java.awt.color.ColorSpace Detail: |
---|
This method transforms color values using relative colorimetry,
as defined by the International Color Consortium standard. This
means that the XYZ argument values taken by this method are represented
relative to the D50 white point of the CS_CIEXYZ color space.
This representation is useful in a two-step color conversion
process in which colors are transformed from an input color
space to CS_CIEXYZ and then to an output color space. The color
values returned by this method are not those that would produce
the XYZ value passed to the method when measured by a colorimeter.
If you have XYZ values corresponding to measurements made using
current CIE recommended practices, they must be converted to D50
relative values before being passed to this method.
See the fromCIEXYZ method of
|
This method transforms color values using algorithms designed
to produce the best perceptual match between input and output
colors. In order to do colorimetric conversion of color values,
you should use the |
|
|
|
|
|
|
|
|
This method transforms color values using relative colorimetry,
as defined by the International Color Consortium standard. This
means that the XYZ values returned by this method are represented
relative to the D50 white point of the CS_CIEXYZ color space.
This representation is useful in a two-step color conversion
process in which colors are transformed from an input color
space to CS_CIEXYZ and then to an output color space. This
representation is not the same as the XYZ values that would
be measured from the given color value by a colorimeter.
A further transformation is necessary to compute the XYZ values
that would be measured using current CIE recommended practices.
See the toCIEXYZ method of
|
This method transforms color values using algorithms designed
to produce the best perceptual match between input and output
colors. In order to do colorimetric conversion of color values,
you should use the |