]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Fixed an image inversion problem.
authorJeremias Maerki <jeremias@apache.org>
Thu, 22 Jan 2009 11:08:28 +0000 (11:08 +0000)
committerJeremias Maerki <jeremias@apache.org>
Thu, 22 Jan 2009 11:08:28 +0000 (11:08 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_AreaTreeNewDesign@736610 13f79535-47bb-0310-9956-ffa450edef68

src/java/org/apache/fop/render/afp/AFPImageHandlerRenderedImage.java

index 354dbef90dea319eade6e7b564ee7f356c644660..ed6fe52b5f177538aef0f977d7a49a5b1608be4d 100644 (file)
@@ -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);
+                }
             }
         }