float sx = fwidth / (float)imw;
float sy = fheight / (float)imh;
gen.commentln("%FOPBeginGraphics2D");
gen.saveGraphicsState();
final boolean clip = false;
if (clip) {
// Clip to the image area.
gen.writeln("newpath");
gen.defineRect(fx, fy, fwidth, fheight);