The problem is that the file is not saving as JPEG. Just a normal file.
This is my code so far:
private void btnSave_Click(object sender, EventArgs e) { saveDialog.FileName = txtModelName.Text; if (saveDialog.ShowDialog() == DialogResult.OK) { Bitmap bmp = new Bitmap(pnlDraw.Width, pnlDraw.Height); pnlDraw.DrawToBitmap(bmp, new Rectangle(0, 0, pnlDraw.Width, pnlDraw.Height)); bmp.Save(saveDialog.FileName, System.Drawing.Imaging.ImageFormat.Jpeg); } }