From c648acc87d5c483492214bd8b3726a0376cd85be Mon Sep 17 00:00:00 2001 From: eschaeffer Date: Tue, 23 May 2000 09:25:53 +0000 Subject: [PATCH] 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 --- .../apache/fop/render/awt/AWTRenderer.java | 33 +++++++++++-------- 1 file changed, 19 insertions(+), 14 deletions(-) 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) { -- 2.39.5