new TranslateIntOpImage(trans,
renderHints,
rotMinX - imMinX,
rotMinY - imMinY);
try {
return new PointMapperOpImage(intermediateImage,
renderHints,
transform);
} catch(NoninvertibleTransformException nite) {
return intermediateImage;
}
} else {
ParameterBlock pbScale = new ParameterBlock();
pbScale.addSource(trans);
pbScale.add(0F);
pbScale.add(0F);
pbScale.add(rotMinX - imMinX);
pbScale.add(rotMinY - imMinY);
pbScale.add(interp);
PlanarImage intermediateImage =
JAI.create("scale", pbScale,
renderHints).getRendering();
try {
return new PointMapperOpImage(intermediateImage,
renderHints,
transform);
} catch(NoninvertibleTransformException nite) {
return intermediateImage;
}