private void button_analyse_Click(object sender, RoutedEventArgs e) { Autocrop acrop = new Autocrop(m, this, -1); if (acrop.m != null) { m = acrop.m.Clone(); ApplyCrop(); } }
private void button_AutoCrop_current_Click(object sender, RoutedEventArgs e) { if (!IsError && HasVideo) { Autocrop acrop = new Autocrop(m, this, (int)slider_pos.Value); if (acrop.m != null) { m = acrop.m.Clone(); SetValues(m.cropl, m.cropt, m.cropr, m.cropb); ShowCroppedFrame(); } } }