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

相关文章:

  • 2022-02-09
  • 2021-12-07
  • 2022-12-23
  • 2021-09-27
  • 2021-12-29
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-12-15
  • 2021-10-23
  • 2022-12-23
相关资源
相似解决方案