private void saveimage_Click(object sender, RoutedEventArgs e) { SaveFileDialog save = new SaveFileDialog(); save.InitialDirectory = @"E:\"; save.Filter = "JPeg Image|*.jpg|Png Image|*.png"; if (save.ShowDialog() == true && save.FileName.Length > 0) { pictureBox1.Image.Save(save.FileName); // MessageBox.Show("Image saved"); ImageSave a = new ImageSave(); a.Show(); this.Close(); } }
private void saveimage_Click(object sender, RoutedEventArgs e) { SaveFileDialog save = new SaveFileDialog(); save.Filter = "JPeg Image|*.jpg|Png Image|*.png"; save.ShowDialog(); bitmap.Save(save.FileName.ToString()); if (save.FileName.Length > 0) { pictureBox1.Image.Save(save.FileName); // MessageBox.Show("Image saved"); ImageSave a = new ImageSave(); a.Show(); this.Close(); } }