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

View File

@ -270,7 +270,7 @@
<comment>Extracting files from {0} to {1}</comment> <comment>Extracting files from {0} to {1}</comment>
</data> </data>
<data name="MsgImageSize" xml:space="preserve"> <data name="MsgImageSize" xml:space="preserve">
<value>イメージ {0} x {1} x {2}bpp</value> <value>イメージ {0} x {1} x {2}bpp [{3}]</value>
<comment>Image {0} x {1} x {2}bpp</comment> <comment>Image {0} x {1} x {2}bpp</comment>
</data> </data>
<data name="MsgNoFiles" xml:space="preserve"> <data name="MsgNoFiles" xml:space="preserve">

View File

@ -232,7 +232,7 @@
<value>{0}에서 {1}로 파일 추출하기</value> <value>{0}에서 {1}로 파일 추출하기</value>
</data> </data>
<data name="MsgImageSize" xml:space="preserve"> <data name="MsgImageSize" xml:space="preserve">
<value>이미지 {0} x {1} x {2}bpp</value> <value>이미지 {0} x {1} x {2}bpp [{3}]</value>
</data> </data>
<data name="MsgNoFiles" xml:space="preserve"> <data name="MsgNoFiles" xml:space="preserve">
<value>추출할 파일이 없음</value> <value>추출할 파일이 없음</value>

View File

@ -232,7 +232,7 @@
<value>Extracting files from {0} to {1}</value> <value>Extracting files from {0} to {1}</value>
</data> </data>
<data name="MsgImageSize" xml:space="preserve"> <data name="MsgImageSize" xml:space="preserve">
<value>Image {0} x {1} x {2}bpp</value> <value>Image {0} x {1} x {2}bpp [{3}]</value>
</data> </data>
<data name="MsgNoFiles" xml:space="preserve"> <data name="MsgNoFiles" xml:space="preserve">
<value>no files to extract</value> <value>no files to extract</value>

View File

@ -226,7 +226,7 @@
<value>Извлекаются файлы из {0} в {1}</value> <value>Извлекаются файлы из {0} в {1}</value>
</data> </data>
<data name="MsgImageSize" xml:space="preserve"> <data name="MsgImageSize" xml:space="preserve">
<value>Изображение {0} x {1} x {2}bpp</value> <value>Изображение {0} x {1} x {2}bpp [{3}]</value>
</data> </data>
<data name="MsgNoFiles" xml:space="preserve"> <data name="MsgNoFiles" xml:space="preserve">
<value>отсутствуют файлы, удовлетворяющие выбранным критериям</value> <value>отсутствуют файлы, удовлетворяющие выбранным критериям</value>

View File

@ -232,7 +232,7 @@
<value>正在从{0}中提取文件至{1}……</value> <value>正在从{0}中提取文件至{1}……</value>
</data> </data>
<data name="MsgImageSize" xml:space="preserve"> <data name="MsgImageSize" xml:space="preserve">
<value>图像 {0} x {1} x {2}bpp</value> <value>图像 {0} x {1} x {2}bpp [{3}]</value>
</data> </data>
<data name="MsgNoFiles" xml:space="preserve"> <data name="MsgNoFiles" xml:space="preserve">
<value>没有可以提取的文件。</value> <value>没有可以提取的文件。</value>