From b80b717563e72cf64c781a6ab6dcf8f572584a4f Mon Sep 17 00:00:00 2001 From: Jeremias Maerki Date: Tue, 16 Dec 2008 09:27:20 +0000 Subject: [PATCH] Fixed black backgrounds occurring for transparent images in PCL output. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@726998 13f79535-47bb-0310-9956-ffa450edef68 --- src/java/org/apache/fop/render/pcl/PCLGenerator.java | 4 ++++ status.xml | 3 +++ 2 files changed, 7 insertions(+) diff --git a/src/java/org/apache/fop/render/pcl/PCLGenerator.java b/src/java/org/apache/fop/render/pcl/PCLGenerator.java index 45af4df89..fbb9c6ad0 100644 --- a/src/java/org/apache/fop/render/pcl/PCLGenerator.java +++ b/src/java/org/apache/fop/render/pcl/PCLGenerator.java @@ -770,6 +770,10 @@ public class PCLGenerator { BufferedImage.TYPE_BYTE_GRAY); Graphics2D g2d = src.createGraphics(); try { + g2d.setBackground(Color.white); + g2d.setColor(Color.black); + g2d.clearRect(0, 0, effDim.width, effDim.height); + AffineTransform at = new AffineTransform(); double sx = effDim.getWidth() / orgDim.getWidth(); double sy = effDim.getHeight() / orgDim.getHeight(); diff --git a/status.xml b/status.xml index 2dc9e6166..6d9373a9f 100644 --- a/status.xml +++ b/status.xml @@ -53,6 +53,9 @@ + + Fixed black backgrounds occurring for transparent images in PCL output. + Fixed bug that caused AFP Renderer Extensions to be ignored. -- 2.39.5