This commit is contained in:
2025-07-28 14:45:37 +08:00
parent f03733da04
commit f4a67e2822
2 changed files with 7 additions and 3 deletions
+2 -1
View File
@@ -104,7 +104,8 @@ namespace Ink_Canvas {
{
Source = new BitmapImage(new Uri(info.SourcePath)),
Width = info.Width,
Height = info.Height
Height = info.Height,
Stretch = Enum.TryParse<Stretch>(info.Stretch, out var stretch) ? stretch : Stretch.Fill
};
InkCanvas.SetLeft(img, info.Left);
InkCanvas.SetTop(img, info.Top);