private void button1_Click(object sender, EventArgs e) { SaveFileDialog dialog = new SaveFileDialog(); dialog.DefaultExt = "bmp"; string path = ""; if (dialog.ShowDialog() == DialogResult.OK) { path = dialog.FileName; Image im = context.GetImage(); im.Save(path); MessageBox.Show("Image saved!"); } // ig.DrawScene(context); }