mirror of
https://github.com/4sval/FModel.git
synced 2026-03-22 01:34:37 -05:00
Texture export based on texture export settings
Asval is goofy
This commit is contained in:
parent
3ebc245cf3
commit
4bce892c79
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user