jeremias 2004/10/11 14:09:45 Modified: src/java/org/apache/fop/render/pdf FopPDFImage.java Log: style and a comment Revision Changes Path 1.6 +4 -4 xml-fop/src/java/org/apache/fop/render/pdf/FopPDFImage.java Index: FopPDFImage.java =================================================================== RCS file: /home/cvs/xml-fop/src/java/org/apache/fop/render/pdf/FopPDFImage.java,v retrieving revision 1.5 retrieving revision 1.6 diff -u -r1.5 -r1.6 --- FopPDFImage.java 11 Oct 2004 21:06:14 -0000 1.5 +++ FopPDFImage.java 11 Oct 2004 21:09:45 -0000 1.6 @@ -87,9 +87,12 @@ } } + //Handle transparency mask if applicable if (fopImage.hasSoftMask()) { byte [] softMask = fopImage.getSoftMask(); - if (softMask == null) return; + if (softMask == null) { + return; + } BitmapImage fopimg = new BitmapImage ("Mask:" + key, fopImage.getWidth(), fopImage.getHeight(), softMask, null); @@ -169,7 +172,6 @@ * @see org.apache.fop.pdf.PDFImage#getSoftMask() */ public String getSoftMask() { - return softMaskRef; } @@ -190,8 +192,6 @@ * @throws IOException in case of an I/O problem */ protected void outputPostScriptContents(OutputStream out) throws IOException { - int length = 0; - int i = 0; EPSImage epsImage = (EPSImage) fopImage; int[] bbox = epsImage.getBBox(); int bboxw = bbox[2] - bbox[0];
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]