if (image instanceof SvgGraphic) {
final SvgGraphic svgGraphic = (SvgGraphic) image;
try {
renderSVGDocument(svgGraphic, contentRectangle, area);
} catch (final IOException e) {
throw new GalleyVisitorException(e);
}
} else if (image instanceof EpsGraphic) {
renderEPS((EpsGraphic) image, contentRectangle.x,
contentRectangle.y, contentRectangle.width,
contentRectangle.height);
} else {
try {
renderBitmap(image, contentRectangle.x, contentRectangle.y,
contentRectangle.width, contentRectangle.height);
} catch (final IOException e) {
throw new GalleyVisitorException(e);
}
}
}