mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-05-26 21:35:16 +00:00
use ARGB_PRE instead of ARGB, becasuse flash uses premultiplied images by default
This commit is contained in:
@@ -65,7 +65,7 @@ public class SerializableImage implements Serializable {
|
||||
}
|
||||
|
||||
public SerializableImage(int width, int height, int imageType, int[] pixels) {
|
||||
if (imageType != BufferedImage.TYPE_INT_ARGB && imageType != BufferedImage.TYPE_INT_RGB) {
|
||||
if (imageType != BufferedImage.TYPE_INT_ARGB_PRE && imageType != BufferedImage.TYPE_INT_RGB) {
|
||||
throw new Error("Unsuppported image type: " + imageType);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user