An OperationDescriptor describing the "ColorConvert" operation.
The "ColorConvert" operation performs a pixel-by-pixel color
conversion of the data in a rendered or renderable source image.
The data are treated as having no alpha channel, i.e., all bands are
color bands. The color space of the source image is specified by the
ColorSpace object of the source image ColorModel
which must not be null . The color space of the destination
image is specified by the ColorSpace of the "colorModel"
parameter which must be a ColorModel . If a
ColorModel is suggested via the RenderingHints
it is ignored.
The calculation pathway is selected to optimize performance and
accuracy based on which ColorSpace subclasses are used to
represent the source and destination color spaces. The subclass
categories are ICC_ColorSpace , ColorSpaceJAI ,
and generic ColorSpace , i.e., one which is not an instance
of either the two aforementioned subclasses. Note that in the Sun
Microsystems implementation, an ICC_ColorSpace instance
is what is returned by ColorSpace.getInstance() .
Integral data are assumed to occupy the full range of the respective
data type; floating point data are assumed to be normalized to the range
[0.0,1.0].
By default, the destination image bounds, data type, and number of
bands are the same as those of the source image.
Resource List
Name | Value |
GlobalName | ColorConvert |
LocalName | ColorConvert |
Vendor | com.sun.media.jai |
Description | Convert the color space of an image. | |
DocURL | http://java.sun.com/products/java-media/jai/forDevelopers/jai-apidocs/javax/media/jai/operator/ColorConvertDescriptor.html |
Version | 1.0 |
arg0Desc | The destination ColorModel . |
Parameter List
Name | Class Type |
Default Value |
colorModel | java.awt.image.ColorModel |
NO_PARAMETER_DEFAULT |
See Also: javax.media.jai.OperationDescriptor See Also: java.awt.color.ColorSpace See Also: java.awt.color.ICC_ColorSpace See Also: java.awt.image.ColorModel See Also: javax.media.jai.ColorSpaceJAI See Also: javax.media.jai.IHSColorSpace |