aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache/fop/render/pdf/ImageRenderedAdapter.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/java/org/apache/fop/render/pdf/ImageRenderedAdapter.java')
-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();
}