transparent shape rendering fix

This commit is contained in:
Honfika
2014-02-26 23:57:18 +01:00
parent 379be1ce5b
commit f5c8b960d4
@@ -30,6 +30,7 @@ import com.jpexs.decompiler.flash.types.SHAPE;
import com.jpexs.decompiler.flash.types.SHAPEWITHSTYLE;
import com.jpexs.decompiler.flash.types.shaperecords.SHAPERECORD;
import com.jpexs.helpers.SerializableImage;
import java.awt.AlphaComposite;
import java.awt.BasicStroke;
import java.awt.Color;
import java.awt.Graphics2D;
@@ -376,6 +377,7 @@ public class BitmapExporter extends ShapeExporterBase implements IShapeExporter
if (fillPaint != null) {
if (fillPaint instanceof MultipleGradientPaint) {
AffineTransform oldAf = graphics.getTransform();
graphics.setComposite(AlphaComposite.Src);
if (fillPathPaint != null) {
graphics.setPaint(fillPathPaint);
}