首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > .NET > C# >

GDI+ 中发生一般性异常

2012-05-16 
GDI+ 中发生一般性错误。System.Runtime.InteropServices.ExternalException (0x80004005): GDI+ 中发生一

GDI+ 中发生一般性错误。
System.Runtime.InteropServices.ExternalException (0x80004005): GDI+ 中发生一般性错误。
  在 System.Drawing.Image.Save(String filename, ImageCodecInfo encoder, EncoderParameters encoderParams)
  在 System.Drawing.Image.Save(String filename, ImageFormat format)
  在 camera.FrmRegister.btn_Photograph_Click(Object sender, EventArgs e) 位置 D:\....cs:行号 136

求解。

[解决办法]
文件权限问题,图片格式不正确,或者调用参数不正确。

热点排行