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();
            }
        }
Exemple #2
0
        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();
            }
        }