ImageDeserializer - Add format check when deserializing

This commit is contained in:
miku-666
2025-02-05 19:13:41 +01:00
parent 2753a84da4
commit bf48d879d5
2 changed files with 5 additions and 18 deletions

View File

@@ -847,11 +847,6 @@ namespace PckStudio
{
Image img = asset.GetTexture();
if (img.RawFormat != ImageFormat.Jpeg || img.RawFormat != ImageFormat.Png)
{
img = new Bitmap(img);
}
try
{
previewPictureBox.Image = img;