Beispiel #1
0
        private void MenuFile_SaveAs_Click(object sender, EventArgs e) // save image as...
        {
            SaveFileDialog sf = new SaveFileDialog();

            sf.Filter = "JPEG|*.jpg; *.jpeg |Bitmap|*.bmp |TIFF|*.tiff |All files|*.* ";

            if (sf.ShowDialog() == DialogResult.OK)
            {
                aiw.getBitmap().Save(sf.FileName);
                aiw.setFilepath(sf.FileName);
            }
            else
            {
                sf.Dispose();
            }
        }