diff options
author | Peter Hancock <phancock@apache.org> | 2011-11-01 12:20:21 +0000 |
---|---|---|
committer | Peter Hancock <phancock@apache.org> | 2011-11-01 12:20:21 +0000 |
commit | fd263a114c84c3756ead9c16b8b088531c5cab2c (patch) | |
tree | 4cd6ba7c8fe3a144629477ac911b2651707bdb03 /src/java/org/apache/fop/render/afp/AbstractAFPImageHandlerRawStream.java | |
parent | 54a4751b616ab4e8957b97af4088bd725367ea6f (diff) | |
download | xmlgraphics-fop-fd263a114c84c3756ead9c16b8b088531c5cab2c.tar.gz xmlgraphics-fop-fd263a114c84c3756ead9c16b8b088531c5cab2c.zip |
Bugzilla#52089: Allow JPEG images to be embedded in an AFP document as
is, without being decoded and encoded. It also allows lossy JPEG compression.
Patch by Jeremias Maerki and Mehdi Houshmand.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1195952 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/fop/render/afp/AbstractAFPImageHandlerRawStream.java')
-rw-r--r-- | src/java/org/apache/fop/render/afp/AbstractAFPImageHandlerRawStream.java | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/java/org/apache/fop/render/afp/AbstractAFPImageHandlerRawStream.java b/src/java/org/apache/fop/render/afp/AbstractAFPImageHandlerRawStream.java index 5374c7051..b36646117 100644 --- a/src/java/org/apache/fop/render/afp/AbstractAFPImageHandlerRawStream.java +++ b/src/java/org/apache/fop/render/afp/AbstractAFPImageHandlerRawStream.java @@ -103,8 +103,7 @@ public abstract class AbstractAFPImageHandlerRawStream extends AFPImageHandler AFPPaintingState paintingState = afpContext.getPaintingState(); int resolution = paintingState.getResolution(); AFPObjectAreaInfo objectAreaInfo = dataObjectInfo.getObjectAreaInfo(); - objectAreaInfo.setWidthRes(resolution); - objectAreaInfo.setHeightRes(resolution); + objectAreaInfo.setResolution(resolution); // Image content ImageRawStream imageStream = (ImageRawStream)image; |