return new LanczosOpImage(source, layout, renderHints, scaleX, scaleY);
}
public Rectangle2D getBounds2D(ParameterBlock paramBlock) {
RenderableImage source = paramBlock.getRenderableSource(0);
double scaleX = paramBlock.getDoubleParameter(0);
double scaleY = paramBlock.getDoubleParameter(1);
// Get the source dimensions
float x0 = (float) source.getMinX();
float y0 = (float) source.getMinY();
float w = (float) source.getWidth();
float h = (float) source.getHeight();
// Forward map the source using x0, y0, w and h
float d_x0 = (float) (x0 * scaleX);
float d_y0 = (float) (y0 * scaleY);
float d_w = (float) (w * scaleX);