From: eschaeffer Date: Mon, 29 May 2000 09:20:52 +0000 (+0000) Subject: Add image transparency support X-Git-Tag: pre-columns~489 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=a28eb311ad44e4c236a3c9b782346cdf512b2456;p=xmlgraphics-fop.git Add image transparency support git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@193388 13f79535-47bb-0310-9956-ffa450edef68 --- 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";