From: eschaeffer Date: Tue, 23 May 2000 09:25:53 +0000 (+0000) Subject: changes to compile (needs to check if it still works) X-Git-Tag: pre-columns~497 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=c648acc87d5c483492214bd8b3726a0376cd85be;p=xmlgraphics-fop.git changes to compile (needs to check if it still works) git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@193377 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/org/apache/fop/render/awt/AWTRenderer.java b/src/org/apache/fop/render/awt/AWTRenderer.java index 3d000a7e9..87ff9633b 100644 --- a/src/org/apache/fop/render/awt/AWTRenderer.java +++ b/src/org/apache/fop/render/awt/AWTRenderer.java @@ -453,20 +453,25 @@ public class AWTRenderer implements Renderer, Printable, Pageable { System.out.println("area.getImage() is null"); } - int[] map = img.getimagemap(); - - String path = img.gethref(); - - ImageIcon icon = new ImageIcon(path); - Image imgage = icon.getImage(); - - graphics.drawImage(imgage, currentXPosition / 1000, - pageHeight - y / 1000, - img.getWidth() / 1000, - img.getHeight() / 1000, - null); - - currentYPosition -= h; + try { + byte[] map = img.getBitmaps(); + + String path = img.getURL(); + + ImageIcon icon = new ImageIcon(path); + Image imgage = icon.getImage(); + + graphics.drawImage(imgage, currentXPosition / 1000, + pageHeight - y / 1000, + img.getWidth() / 1000, + img.getHeight() / 1000, + null); + + currentYPosition -= h; + } catch (FopImageException imgex) { + // ? + System.out.println("Error while loading image : " + imgex.getMessage()); + } } public void renderInlineArea(InlineArea area) {