pb.add(height);
return JAI.create("Crop", pb, hints);
}
static public PlanarImage scaledRendering(Rendering rendering, Operation op, float scale, boolean cheap) {
Rendering newRendering = rendering.clone();
float oldScale = rendering.getScaleFactor();
newRendering.cheapScale = cheap;
newRendering.setScaleFactor(scale * oldScale);
return newRendering.getRendering(rendering.indexOf(op));
}