private void CropWindow_Closing(object sender, CancelEventArgs e) { var oP = new OptionsProperties(); oP.SetOption("ContourThickness", SecimValue.Value); oP.SetOption("SuccessRate", DogrulukValue.Value); ContourOptions.SaveOption("AdaptiveThresholdBlockSize", DetailSlider.Value); }
private void YeniButon_Click(object sender, RoutedEventArgs e) { ContourOptions.SaveOption("AdaptiveThresholdBlockSize", DetailSlider.Value); _lockSelection = false; _processor = ContourOptions.Processor; _croppedImage = null; _designedSamples = new Templates(); AlanSayisi.Text = ResLocalization.SavedTemplateCount + " :0"; PaintCanvas.Background = Brushes.White; PaintCanvas.Children.Clear(); }
public VideoSettings(ImageProcessor processor) { ContourOptions.SaveOption("AdaptiveThresholdBlockSize", processor.adaptiveThresholdBlockSize); InitializeComponent(); Processor = processor; }