< prev index next >

src/java.desktop/share/classes/sun/print/PSPathGraphics.java

Print this page

        

@@ -421,11 +421,13 @@
                  * - images with bitmask transparency and an IndexColorModel
                  * (the common transparent GIF case) can be handled by
                  * rendering just the opaque pixels.
                  */
                 boolean drawOpaque = true;
-                if (!handlingTransparency && hasTransparentPixels(img)) {
+                if (isCompositing(getComposite())) {
+                    drawOpaque = false;
+                } else if (!handlingTransparency && hasTransparentPixels(img)) {
                     drawOpaque = false;
                     if (isBitmaskTransparency(img)) {
                         if (bgcolor == null) {
                             if (drawBitmaskImage(img, xform, bgcolor,
                                                 srcX, srcY,
< prev index next >