From 4bce892c79db50783ce53dc92c464fb85e1be65c Mon Sep 17 00:00:00 2001 From: GhostScissors Date: Mon, 9 Sep 2024 15:24:01 +0530 Subject: [PATCH] Texture export based on texture export settings Asval is goofy --- FModel/ViewModels/TabControlViewModel.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/FModel/ViewModels/TabControlViewModel.cs b/FModel/ViewModels/TabControlViewModel.cs index 815f97e9..7b7f5835 100644 --- a/FModel/ViewModels/TabControlViewModel.cs +++ b/FModel/ViewModels/TabControlViewModel.cs @@ -69,7 +69,7 @@ public class TabImage : ViewModel return; } _bmp = bitmap; - using var data = _bmp.Encode(NoAlpha ? SKEncodedImageFormat.Jpeg : SKEncodedImageFormat.Png, 100); + using var data = _bmp.Encode(NoAlpha ? ETextureFormat.Jpeg : UserSettings.Default.TextureExportFormat, 100); using var stream = new MemoryStream(ImageBuffer = data.ToArray(), false); var image = new BitmapImage(); image.BeginInit();