Browse Source

优化图片刷新

tags/录制修改前
zhangxueyang 4 years ago
parent
commit
fca66ce934
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      XHWK.WKTool/XHMicroLessonSystemWindow.xaml.cs

+ 2
- 1
XHWK.WKTool/XHMicroLessonSystemWindow.xaml.cs View File

1457
                             imgCanvas.Width = bitImg.Width;
1457
                             imgCanvas.Width = bitImg.Width;
1458
                             imgCanvas.Height = bitImg.Height;
1458
                             imgCanvas.Height = bitImg.Height;
1459
                             scroMain.ScrollToVerticalOffset(0);
1459
                             scroMain.ScrollToVerticalOffset(0);
1460
-                            APP.PageDrawList[APP.pageData.currpage - 1].ImageSizes = new ScaleTransform
1460
+                                imgCanvas.Margin = new Thickness(APP.PageDrawList[APP.pageData.currpage - 1].ImageLocation.X, APP.PageDrawList[APP.pageData.currpage - 1].ImageLocation.Y, 0, 0);
1461
+                                APP.PageDrawList[APP.pageData.currpage - 1].ImageSizes = new ScaleTransform
1461
                             {
1462
                             {
1462
                                 CenterX = imgCanvas.Width,
1463
                                 CenterX = imgCanvas.Width,
1463
                                 CenterY = imgCanvas.Height
1464
                                 CenterY = imgCanvas.Height

Loading…
Cancel
Save