]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
changes to compile (needs to check if it still works)
authoreschaeffer <eschaeffer@unknown>
Tue, 23 May 2000 09:25:53 +0000 (09:25 +0000)
committereschaeffer <eschaeffer@unknown>
Tue, 23 May 2000 09:25:53 +0000 (09:25 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@193377 13f79535-47bb-0310-9956-ffa450edef68

src/org/apache/fop/render/awt/AWTRenderer.java

index 3d000a7e9ba015b4a16e690588e99a3ab7c39529..87ff9633b8639192fe2583ba9d6cd296fbf854cb 100644 (file)
@@ -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) {