From a28eb311ad44e4c236a3c9b782346cdf512b2456 Mon Sep 17 00:00:00 2001 From: eschaeffer Date: Mon, 29 May 2000 09:20:52 +0000 Subject: [PATCH] Add image transparency support git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@193388 13f79535-47bb-0310-9956-ffa450edef68 --- src/org/apache/fop/pdf/PDFXObject.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/org/apache/fop/pdf/PDFXObject.java b/src/org/apache/fop/pdf/PDFXObject.java index 008dafccf..f311bbb3b 100644 --- a/src/org/apache/fop/pdf/PDFXObject.java +++ b/src/org/apache/fop/pdf/PDFXObject.java @@ -117,6 +117,10 @@ public class PDFXObject extends PDFObject { p = p + "/BitsPerComponent " + fopimage.getBitsPerPixel() + "\n"; ColorSpace cs = fopimage.getColorSpace(); p = p + "/ColorSpace /" + cs.getColorSpacePDFString() + "\n"; + if (fopimage.isTransparent()) { + PDFColor transp = fopimage.getTransparentColor(); + p = p + "/Mask [" + transp.red255() + " " + transp.red255() + " " + transp.green255() + " " + transp.green255() + " " + transp.blue255() + " " + transp.blue255() + "]\n"; + } p = p + imgStream.getPDFDictionary(); p = p + ">>\n"; -- 2.39.5