The image warp is specified by a Warp
object and an Interpolation
object.
Subclasses of WarpOpImage
may choose whether they wish to implement the cobbled or non-cobbled variant of computeRect
by means of the cobbleSources
constructor parameter. The class comments for OpImage
provide more information about how to override computeRect
. It should be noted that the superclass GeometricOpImage
automatically adds a value of Boolean.TRUE
for the JAI.KEY_REPLACE_INDEX_COLOR_MODEL
to the given configuration
and passes it up to its superclass constructor so that geometric operations are performed on the pixel values instead of being performed on the indices into the color map for those operations whose source(s) have an IndexColorModel
. This addition will take place only if a value for the JAI.KEY_REPLACE_INDEX_COLOR_MODEL
has not already been provided by the user. Note that the configuration
Map is cloned before the new hint is added to it. Regarding the value for the JAI.KEY_REPLACE_INDEX_COLOR_MODEL
RenderingHints
, the operator itself can be smart based on the parameters, i.e. while the default value for the JAI.KEY_REPLACE_INDEX_COLOR_MODEL
is Boolean.TRUE
for operations that extend this class, in some cases the operator could set the default.
@see GeometricOpImage
@see OpImage
@see Warp
@see Interpolation
|
|