Transforms the source
Raster
and stores the results in
the destination
Raster
. This operation performs the
transform band by band.
If the destination Raster
is null, a new
Raster
is created.
An IllegalArgumentException
may be thrown if the source is
the same as the destination or if the number of bands in
the source is not equal to the number of bands in the
destination.
The coordinates of the rectangle returned by
getBounds2D(Raster)
are not necessarily the same as the coordinates of the
WritableRaster
returned by this method. If the
upper-left corner coordinates of rectangle are negative then
this part of the rectangle is not drawn. If the coordinates
of the rectangle are positive then the filtered image is drawn at
that position in the destination Raster
.
Returns:
The transformed Raster
.
Parameters:
- src - The Raster
to transform.
- dst - The Raster
in which to store the results of the
transformation.
Throws:
- ImagingOpException - if the raster cannot be transformed
because of a data-processing error that might be
caused by an invalid image format, tile format, or
image-processing operation, or any other unsupported
operation.