image rendering fixed

This commit is contained in:
Honfika
2014-01-29 11:21:15 +01:00
parent 5c5106b1c1
commit 3f2adbf8f6
19 changed files with 49 additions and 80 deletions

View File

@@ -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);
}
}