From 0fcb762112642b2404ec372142eede8e8042ddbe Mon Sep 17 00:00:00 2001 From: honfika Date: Mon, 14 Jul 2014 14:06:26 +0200 Subject: [PATCH] Issue #559: another bitmap export opacity bug fixed --- .../jpexs/decompiler/flash/exporters/shape/BitmapExporter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/com/jpexs/decompiler/flash/exporters/shape/BitmapExporter.java b/src/com/jpexs/decompiler/flash/exporters/shape/BitmapExporter.java index 396ead7d1..09e86e54e 100644 --- a/src/com/jpexs/decompiler/flash/exporters/shape/BitmapExporter.java +++ b/src/com/jpexs/decompiler/flash/exporters/shape/BitmapExporter.java @@ -337,6 +337,7 @@ public class BitmapExporter extends ShapeExporterBase { protected void finalizePath() { if (path != null) { if (fillPaint != null) { + graphics.setComposite(AlphaComposite.SrcOver); if (fillPaint instanceof MultipleGradientPaint) { AffineTransform oldAf = graphics.getTransform(); if (fillPathPaint != null) { @@ -380,7 +381,6 @@ public class BitmapExporter extends ShapeExporterBase { ExportRectangle rect = inverse.transform(new ExportRectangle(path.getBounds2D())); double minX = rect.xMin; double minY = rect.yMin; - graphics.setComposite(AlphaComposite.SrcOver); graphics.fill(new java.awt.Rectangle((int) minX, (int) minY, (int) (rect.xMax - minX), (int) (rect.yMax - minY))); }