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();

posted @ 2010-08-30 22:55  jetz  阅读(362)  评论(0编辑  收藏  举报