Browse Source

录屏 画板功能。

tags/录制修改前
zhangxueyang 4 years ago
parent
commit
5e6fd2992f

+ 3
- 1
XHWK.WKTool/PracticeWindow.xaml.cs View File

26
         }
26
         }
27
         public void Initialize(string _imgPath)
27
         public void Initialize(string _imgPath)
28
         {
28
         {
29
-            if(File.Exists(_imgPath))
29
+            blackboard_canvas.Strokes.Clear();
30
+            //blackboard_canvas.EditingMode = InkCanvasEditingMode.EraseByStroke;
31
+            if (File.Exists(_imgPath))
30
             {
32
             {
31
                 imgCanvas.Source = new BitmapImage(new Uri(_imgPath));
33
                 imgCanvas.Source = new BitmapImage(new Uri(_imgPath));
32
             }
34
             }

+ 6
- 2
XHWK.WKTool/ScreenRecordingToolbarWindow.xaml.cs View File

58
             blackboard_canvas.DefaultDrawingAttributes = drawingAttributes;
58
             blackboard_canvas.DefaultDrawingAttributes = drawingAttributes;
59
             drawingAttributes.FitToCurve = true;
59
             drawingAttributes.FitToCurve = true;
60
             //隐藏画笔工具栏
60
             //隐藏画笔工具栏
61
-            BtnToolbarDown_Click(null, null);
61
+            //BtnToolbarDown_Click(null, null);
62
+            gridToolbar.Visibility = Visibility.Hidden;
63
+            gridColour.Visibility = Visibility.Hidden;
64
+            gridThickness.Visibility = Visibility.Hidden;
62
         }
65
         }
63
         #endregion
66
         #endregion
64
 
67
 
192
             gridToolbar.Visibility = Visibility.Hidden;
195
             gridToolbar.Visibility = Visibility.Hidden;
193
             gridColour.Visibility = Visibility.Hidden;
196
             gridColour.Visibility = Visibility.Hidden;
194
             gridThickness.Visibility = Visibility.Hidden;
197
             gridThickness.Visibility = Visibility.Hidden;
198
+            APP.W_PracticeWindow.Hide();
195
         }
199
         }
196
         /// <summary>
200
         /// <summary>
197
         /// 画笔点击事件
201
         /// 画笔点击事件
230
                     //practiceWin.Owner = this;
234
                     //practiceWin.Owner = this;
231
                 }
235
                 }
232
                 APP.W_PracticeWindow.Initialize(imagePath);
236
                 APP.W_PracticeWindow.Initialize(imagePath);
233
-                APP.W_PracticeWindow.ShowDialog();
237
+                APP.W_PracticeWindow.Show();
234
             }
238
             }
235
             catch (Exception ex)
239
             catch (Exception ex)
236
             {
240
             {

Loading…
Cancel
Save