]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
style and a comment
authorJeremias Maerki <jeremias@apache.org>
Mon, 11 Oct 2004 21:09:45 +0000 (21:09 +0000)
committerJeremias Maerki <jeremias@apache.org>
Mon, 11 Oct 2004 21:09:45 +0000 (21:09 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@198037 13f79535-47bb-0310-9956-ffa450edef68

src/java/org/apache/fop/render/pdf/FopPDFImage.java

index 3e964c11142de626f4d0c6328bd221fb3038ec85..3a80bf2de48f57b71123eb9d9f2783d427d7c942 100644 (file)
@@ -87,9 +87,12 @@ public class FopPDFImage implements PDFImage {
             }
         }
 
+        //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 @@ public class FopPDFImage implements PDFImage {
      * @see org.apache.fop.pdf.PDFImage#getSoftMask()
      */
     public String getSoftMask() {
-
         return softMaskRef;
     }
 
@@ -190,8 +192,6 @@ public class FopPDFImage implements PDFImage {
      * @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];