// error
break;
}
try {
final Graphic graphic = new TempImage(null, width, height, result);
final AffineTransform at = getTransform();
final double[] matrix =
new double[PsUtil.MATRIX_QTY_ELEMENTS];
at.getMatrix(matrix);
this.out.write("gsave");
final Shape imclip = getClip();
writeClip(imclip);
this.out.write("1000 -1000 scale");
// psRenderer.write("" + matrix[0] + " " + matrix[1] +
// " " + matrix[2] + " " + matrix[3] + " " +
// matrix[4] + " " + matrix[5] + " cm\n");
/* TODO: The following line is commented out to avoid having this
* class dependent on the PostScript renderer. After this is all
* moved to the Graphics package, this needs to be reworked.
* The "graphic" needs to be a real Graphic instance of the proper
* type, and should then be converted to PostScript here. */
graphic.close();
// this.psRenderer.renderBitmap(graphic, x, -y, width, height);
this.out.write("grestore");
} catch (final IOException e) {
this.logger.error(e.getMessage());
}