mirror of
https://github.com/azaion/annotations.git
synced 2026-04-22 10:26:31 +00:00
fix saving scale for datasetexplorer and annotation
This commit is contained in:
@@ -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);
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user