aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJeremias Maerki <jeremias@apache.org>2008-08-06 19:37:18 +0000
committerJeremias Maerki <jeremias@apache.org>2008-08-06 19:37:18 +0000
commite2c7140243263b2d7d27074c68004fbb5ffa05fa (patch)
tree1fc46dc9bb067fe02e671c1b2ea8c7076812f81b /src
parent23f712558698be8e5addc8869a89c1719cb90808 (diff)
downloadxmlgraphics-fop-e2c7140243263b2d7d27074c68004fbb5ffa05fa.tar.gz
xmlgraphics-fop-e2c7140243263b2d7d27074c68004fbb5ffa05fa.zip
Bugfix: Don't use getWidth/Height() from superclass as this is accessing the original size, not the effective size of the bitmap (could have been rendered to a different size by an image converter).
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_AreaTreeNewDesign@683383 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src')
-rw-r--r--src/java/org/apache/fop/render/pdf/ImageRenderedAdapter.java12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/java/org/apache/fop/render/pdf/ImageRenderedAdapter.java b/src/java/org/apache/fop/render/pdf/ImageRenderedAdapter.java
index e8988244f..5ddcd06c6 100644
--- a/src/java/org/apache/fop/render/pdf/ImageRenderedAdapter.java
+++ b/src/java/org/apache/fop/render/pdf/ImageRenderedAdapter.java
@@ -75,6 +75,18 @@ public class ImageRenderedAdapter extends AbstractImageAdapter {
return ((ImageRendered)this.image);
}
+ /** {@inheritDoc} */
+ public int getWidth() {
+ RenderedImage ri = getImage().getRenderedImage();
+ return ri.getWidth();
+ }
+
+ /** {@inheritDoc} */
+ public int getHeight() {
+ RenderedImage ri = getImage().getRenderedImage();
+ return ri.getHeight();
+ }
+
private ColorModel getEffectiveColorModel() {
return encodingHelper.getEncodedColorModel();
}