mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-06-05 11:24:50 +00:00
image rendering fixed
This commit is contained in:
@@ -124,7 +124,9 @@ public final class ImagePanel extends JPanel implements ActionListener, FlashDis
|
||||
Matrix mat = new Matrix();
|
||||
mat.translateX = swf.displayRect.Xmin;
|
||||
mat.translateY = swf.displayRect.Ymin;
|
||||
setImage(drawable.toImage(0, swf.tags, mat, characters, new Stack<Integer>()));
|
||||
SerializableImage img = drawable.toImage(0, swf.tags, characters, new Stack<Integer>());
|
||||
mat.translate(img.bounds.getMinX(), img.bounds.getMinY());
|
||||
setImage(img);
|
||||
return;
|
||||
}
|
||||
play();
|
||||
@@ -178,7 +180,9 @@ public final class ImagePanel extends JPanel implements ActionListener, FlashDis
|
||||
Matrix mat = new Matrix();
|
||||
mat.translateX = swf.displayRect.Xmin;
|
||||
mat.translateY = swf.displayRect.Ymin;
|
||||
ImageIcon icon = new ImageIcon(drawable.toImage(nframe, swf.tags, mat, characters, new Stack<Integer>()).getBufferedImage());
|
||||
SerializableImage img = drawable.toImage(nframe, swf.tags, characters, new Stack<Integer>());
|
||||
mat.translate(img.bounds.getMinX(), img.bounds.getMinY());
|
||||
ImageIcon icon = new ImageIcon(img.getBufferedImage());
|
||||
label.setIcon(icon);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user