Overwriting an image file (bitmap)
问题 Hello I am trying to save a bitmap image in a basic image editor program. Here's the code: // then save it ImageBoxInApp.Image.Save(filename); [EDIT] And I am opening the image with this openFileDialog1.Title = "Select an Image"; openFileDialog1.Filter = "All Files|*.*|Windows Bitmaps|*.bmp|JPEG Files|*.jpg"; if (openFileDialog1.ShowDialog() == DialogResult.OK) { filename = openFileDialog1.FileName; Image img = System.Drawing.Image.FromFile(filename); So when I try this I receive a Generic