Transforms the pixel data in the source
Raster from sRGB to the color space represented by this class. If the destination
WritableRaster is
null, a new
WritableRaster will be created. The
Rasters are treated as having no alpha channel, i.e., all bands are color bands.
If required by the underlying transformation, integral data will be normalized according to the number of bits of the respective component; floating point data should be between 0.0 and 1.0. All integral data are assumed to be unsigned; signed data should be shifted by the caller before invoking this method.
@param src the source Raster to be converted.
@param srcComponentSize array that specifies the number of significantbits per source color component; ignored for floating point data. If null defaults to the value returned by src.getSampleModel().getSampleSize().
@param dest the destination WritableRaster,or null.
@param destComponentSize array that specifies the number of significantbits per destination color component; ignored for floating point data. If null, defaults to the value returned by dest.getSampleModel().getSampleSize(), or the sample size of the newly created destination WritableRaster if dest is null.
@return dest color converted from srcor a new, WritableRaster containing the converted pixels if dest is null.
@exception IllegalArgumentException if src isnull, the number of source or destination bands does not equal the number of components of the respective color space, or either component size array is non-null and has length not equal to the number of bands in the respective Raster.