From: Jeremias Maerki Date: Thu, 22 Jan 2009 11:08:28 +0000 (+0000) Subject: Fixed an image inversion problem. X-Git-Tag: fop-1_0~115^2~81 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=72db510f91a0c498297f322f94246a7a79514d2c;p=xmlgraphics-fop.git 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 --- 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); + } } }