GDI+中发生一般性错误

在PictureBox中有一副图,希望保存成图片,用

pictureBox1.Image("c:\\aa.jpg",System.Drawing.Imaging.ImageFormat.Jpeg);

老是报“GDI+中发生一般性错误”,网上找找,这个办法可以:

Bitmap bmp = new Bitmap(pictureBox1.Image);
bmp.Save("c:\\aa.jpg",System.Drawing.Imaging.ImageFormat.Jpeg);

bmp.Dispose();

原文地址:https://www.cnblogs.com/jetz/p/1813038.html