示例#1
0
 private void Save_Click(object sender, RoutedEventArgs e)
 {
     using (var img = DrawCanvas.Crop())
     {
         if (img != null)
         {
             var p = AddSuffix(state.Filename, "_" + state.Counter);
             img.ImWrite(p);
             state.Counter += 1;
             DrawCanvas.Reset();
         }
     }
 }
示例#2
0
 private void Reset_Click(object sender, RoutedEventArgs e)
 {
     DrawCanvas.Reset();
 }