[Workspaces] Add encoder parameter to bitmap.save() (#36228)

* [Workspaces] Add encoder parameter to bitmap.save()

* 1 more call fixed

* Move repeated code to the csharp library
This commit is contained in:
Laszlo Nemeth
2024-12-05 20:27:28 +01:00
committed by GitHub
parent f7c9c80ab2
commit a9123bfc23
4 changed files with 30 additions and 4 deletions

View File

@@ -132,7 +132,7 @@ namespace WorkspacesCsharpLibrary.Models
using (var memory = new MemoryStream())
{
previewBitmap.Save(memory, ImageFormat.Png);
DrawHelper.SaveBitmap(previewBitmap, memory);
memory.Position = 0;
BitmapImage bitmapImage = new BitmapImage();