Beispiel #1
0
 private static AbstractFilter ContrastForm(Bitmap image, int value)
 {
     using (ContrastForm form = new ContrastForm(image, value, false)) {
         if (form.ShowDialog() == DialogResult.OK)
         {
             AbstractFilter newFilter = form.resultFilter;
             return(newFilter);
         }
         return(null);
     }
 }
 private void contrastButton_Click(object sender, EventArgs e)
 {
     using (ContrastForm form = new ContrastForm(ImageProcessingController.Instance.GetNode(SelectedNodeIndex).Output)) {
         if (form.ShowDialog() == DialogResult.OK)
         {
             ImageProcessingController.Instance.AddNode(form.resultFilter);
             RebuildImageView();
             SelectNode(filterThumbsGrid.Rows.Count - 1);
         }
     }
 }