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); } }
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); } }