コード例 #1
0
 public void clearAllDrawingObject()
 {
     if (drawing_objects == null)
     {
         return;
     }
     foreach (HTuple dobj in drawing_objects)
     {
         HOperatorSet.ClearDrawingObject(dobj);
     }
     drawing_objects.Clear();
 }
コード例 #2
0
 private void OnClearAllObjects_Click(object sender, RoutedEventArgs e)
 {
     lock (image_lock)
     {
         foreach (HTuple dobj in drawing_objects)
         {
             HOperatorSet.ClearDrawingObject(dobj);
         }
         drawing_objects.Clear();
     }
     hSmartWindowControlWPF1.HalconWindow.ClearWindow();
 }
コード例 #3
0
 private void OnClearAllObjects_Click(object sender, RoutedEventArgs e)
 {
     if (drawing_objects == null)
     {
         return;
     }
     lock (image_lock)
     {
         foreach (HTuple dobj in drawing_objects)
         {
             HOperatorSet.ClearDrawingObject(dobj);
         }
         drawing_objects.Clear();
     }
     ProcessingPic.HalconWindow.ClearWindow();
 }