Example #1
0
 private void saveFilteredButton_Click(object sender, EventArgs e)
 {
     saveFileDialog.FileName = ImageUtil.AddSuffix(pictureBoxBefore.ImageLocation, morphologyTypeDropdownList.SelectedItem.ToString());
     if (saveFileDialog.ShowDialog() == DialogResult.OK)
     {
         pictureBoxFiltered.Image.Save(saveFileDialog.FileName);
     }
 }
Example #2
0
 private void saveThresholdButton_Click(object sender, EventArgs e)
 {
     saveFileDialog.FileName = ImageUtil.AddSuffix(pictureBoxBefore.ImageLocation, "Thresholded");
     if (saveFileDialog.ShowDialog() == DialogResult.OK)
     {
         pictureBoxAfterThreshold.Image.Save(saveFileDialog.FileName);
     }
 }