diff options
author | Jeremias Maerki <jeremias@apache.org> | 2009-01-22 11:08:28 +0000 |
---|---|---|
committer | Jeremias Maerki <jeremias@apache.org> | 2009-01-22 11:08:28 +0000 |
commit | 72db510f91a0c498297f322f94246a7a79514d2c (patch) | |
tree | 910b15c6e02122bffdc80130f0d653e358de16ec /src/java/org/apache/fop/render | |
parent | 6217309d81ef8d8cbecc59840b2b84355fd7c9d4 (diff) | |
download | xmlgraphics-fop-72db510f91a0c498297f322f94246a7a79514d2c.tar.gz xmlgraphics-fop-72db510f91a0c498297f322f94246a7a79514d2c.zip |
Fixed an image inversion problem.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_AreaTreeNewDesign@736610 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/fop/render')
-rw-r--r-- | src/java/org/apache/fop/render/afp/AFPImageHandlerRenderedImage.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/java/org/apache/fop/render/afp/AFPImageHandlerRenderedImage.java b/src/java/org/apache/fop/render/afp/AFPImageHandlerRenderedImage.java index 354dbef90..ed6fe52b5 100644 --- a/src/java/org/apache/fop/render/afp/AFPImageHandlerRenderedImage.java +++ b/src/java/org/apache/fop/render/afp/AFPImageHandlerRenderedImage.java @@ -154,6 +154,9 @@ public class AFPImageHandlerRenderedImage extends AFPImageHandler implements Ima ImageEncodingHelper.encodeRGBAsGrayScale( imageData, dataWidth, dataHeight, bitsPerPixel, baos); imageData = baos.toByteArray(); + if (bitsPerPixel == 1) { + imageObjectInfo.setSubtractive(true); + } } } |