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(); } } }
private void Reset_Click(object sender, RoutedEventArgs e) { DrawCanvas.Reset(); }