/** {@inheritDoc} */
public void handleImage(RenderingContext context, Image image, Rectangle pos)
throws IOException {
PSRenderingContext psContext = (PSRenderingContext)context;
PSGenerator gen = psContext.getGenerator();
ImageRawEPS eps = (ImageRawEPS)image;
float x = (float)pos.getX() / 1000f;
float y = (float)pos.getY() / 1000f;
float w = (float)pos.getWidth() / 1000f;
float h = (float)pos.getHeight() / 1000f;
ImageInfo info = image.getInfo();
Rectangle2D bbox = eps.getBoundingBox();
if (bbox == null) {
bbox = new Rectangle2D.Double();
bbox.setFrame(new Point2D.Double(), info.getSize().getDimensionPt());
}
InputStream in = eps.createInputStream();
try {
String resourceName = info.getOriginalURI();
if (resourceName == null) {
resourceName = "inline image";
}