(GUI): added image format tag to status message.

This commit is contained in:
poddav
2022-04-29 13:14:16 +04:00
parent 4fe241276f
commit 307805c4ac
6 changed files with 8 additions and 8 deletions

View File

@@ -240,7 +240,7 @@ namespace GARbro.GUI
{
using (var data = VFS.OpenImage (preview.Entry))
{
SetPreviewImage (preview, data.Image.Bitmap);
SetPreviewImage (preview, data.Image.Bitmap, data.SourceFormat);
}
}
catch (Exception X)
@@ -250,7 +250,7 @@ namespace GARbro.GUI
}
}
void SetPreviewImage (PreviewFile preview, BitmapSource bitmap)
void SetPreviewImage (PreviewFile preview, BitmapSource bitmap, ImageFormat format)
{
if (bitmap.DpiX != Desktop.DpiX || bitmap.DpiY != Desktop.DpiY)
{
@@ -271,7 +271,7 @@ namespace GARbro.GUI
ImageCanvas.Source = bitmap;
ApplyDownScaleSetting();
SetStatusText (string.Format (guiStrings.MsgImageSize, bitmap.PixelWidth,
bitmap.PixelHeight, bitmap.Format.BitsPerPixel));
bitmap.PixelHeight, bitmap.Format.BitsPerPixel, format.Tag));
}
});
}