fix saving scale for datasetexplorer and annotation

This commit is contained in:
Oleksandr Bezdieniezhnykh
2025-10-01 14:29:23 +03:00
parent 9b80eaf435
commit 99b9058187
4 changed files with 38 additions and 23 deletions
+5
View File
@@ -1,4 +1,5 @@
using System.IO;
using System.Windows;
using System.Windows.Media.Imaging;
namespace Azaion.Dataset;
@@ -16,4 +17,8 @@ public static class BitmapExtensions
image.Freeze();
return image;
}
public static Size Size(this BitmapImage image) =>
new(image.PixelWidth, image.PixelHeight);
}