From 72db510f91a0c498297f322f94246a7a79514d2c Mon Sep 17 00:00:00 2001 From: Jeremias Maerki Date: Thu, 22 Jan 2009 11:08:28 +0000 Subject: [PATCH] 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 --- .../apache/fop/render/afp/AFPImageHandlerRenderedImage.java | 3 +++ 1 file changed, 3 insertions(+) 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); + } } } -- 2.39.5