diff options
author | Jeremias Maerki <jeremias@apache.org> | 2005-01-20 14:08:20 +0000 |
---|---|---|
committer | Jeremias Maerki <jeremias@apache.org> | 2005-01-20 14:08:20 +0000 |
commit | 0cb69bccd8be607c9ce36eedd58c1f5f25a042d0 (patch) | |
tree | e8d2b949bfa1593d5d541b149d94ea1c943a2c67 /src/java/org/apache/fop/fo/flow | |
parent | 68674072dea8e8438870a493e5d2bd4c366a87bb (diff) | |
download | xmlgraphics-fop-0cb69bccd8be607c9ce36eedd58c1f5f25a042d0.tar.gz xmlgraphics-fop-0cb69bccd8be607c9ce36eedd58c1f5f25a042d0.zip |
Clipping the background image.
Added support for fetching bitmap resolution (only implemented for JFIF-compliant JPEG files for now, all other remain at 72dpi as before)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@198294 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/fop/fo/flow')
-rw-r--r-- | src/java/org/apache/fop/fo/flow/ExternalGraphic.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/java/org/apache/fop/fo/flow/ExternalGraphic.java b/src/java/org/apache/fop/fo/flow/ExternalGraphic.java index 8f0fe7fda..c9f67a0fc 100644 --- a/src/java/org/apache/fop/fo/flow/ExternalGraphic.java +++ b/src/java/org/apache/fop/fo/flow/ExternalGraphic.java @@ -306,7 +306,7 @@ public class ExternalGraphic extends FObj { public int getIntrinsicWidth() { prepareIntrinsicSize(); if (fopimage != null) { - return fopimage.getWidth() * 1000; + return fopimage.getIntrinsicWidth(); } else { return 0; } @@ -318,7 +318,7 @@ public class ExternalGraphic extends FObj { public int getIntrinsicHeight() { prepareIntrinsicSize(); if (fopimage != null) { - return fopimage.getHeight() * 1000; + return fopimage.getIntrinsicHeight(); } else { return 0; } |