Constructs a new ColorConvertOp from two ColorSpace objects.
The RenderingHints argument may be null.
This Op is primarily useful for calling the filter method on
Rasters, in which case the two ColorSpaces define the operation
to be performed on the Rasters. In that case, the number of bands
in the source Raster must match the number of components in
srcCspace, and the number of bands in the destination Raster
must match the number of components in dstCspace. For BufferedImages,
the two ColorSpaces define intermediate spaces through which the
source is converted before being converted to the destination space.
Parameters:
-
srcCspace - the source
ColorSpace
-
dstCspace - the destination
ColorSpace
-
hints - the
RenderingHints
object used to control
the color conversion, or
null
Throws:
-
NullPointerException - if either srcCspace or dstCspace is null