// Button to save the new image private void OnbuttonSave_Click(object sender, EventArgs e) { // Open file save dialog window SaveFileDialog sfd = new SaveFileDialog { Title = "Specify a file name and file path", Filter = "Png Images(*.png)|*.png" }; // If OK is clicked if (sfd.ShowDialog() == DialogResult.OK) { imageController.SaveImage(sfd.FileName); } }