BlendModeSettable

This commit is contained in:
Jindra Petřík
2024-10-27 07:57:04 +01:00
parent 1a8ec1c987
commit 485b86acb1
2 changed files with 6 additions and 6 deletions

View File

@@ -62,7 +62,7 @@ import java.util.logging.Logger;
*
* @author JPEXS
*/
public class DualPdfGraphics2D extends Graphics2D implements BlendModeSetable, GraphicsGroupable, GraphicsTextDrawable {
public class DualPdfGraphics2D extends Graphics2D implements BlendModeSettable, GraphicsGroupable, GraphicsTextDrawable {
private final Graphics2D imageGraphics;

View File

@@ -20,7 +20,7 @@ import com.jpexs.decompiler.flash.AppResources;
import com.jpexs.decompiler.flash.SWF;
import com.jpexs.decompiler.flash.TagRemoveListener;
import com.jpexs.decompiler.flash.configuration.Configuration;
import com.jpexs.decompiler.flash.exporters.BlendModeSetable;
import com.jpexs.decompiler.flash.exporters.BlendModeSettable;
import com.jpexs.decompiler.flash.exporters.FrameExporter;
import com.jpexs.decompiler.flash.exporters.commonshape.ExportRectangle;
import com.jpexs.decompiler.flash.exporters.commonshape.Matrix;
@@ -1222,8 +1222,8 @@ public class Timeline {
AffineTransform trans = drawMatrix.toTransform();
if (g instanceof BlendModeSetable) {
((BlendModeSetable) g).setBlendMode(blendMode);
if (g instanceof BlendModeSettable) {
((BlendModeSettable) g).setBlendMode(blendMode);
} else {
switch (blendMode) {
case 0:
@@ -1334,8 +1334,8 @@ public class Timeline {
g.drawImage(img.getBufferedImage(), 0, 0, null);
}
}
if (g instanceof BlendModeSetable) {
((BlendModeSetable) g).setBlendMode(0);
if (g instanceof BlendModeSettable) {
((BlendModeSettable) g).setBlendMode(0);
} else {
g.setComposite(AlphaComposite.SrcOver);
}