Bitmap sourceImage = new Bitmap(sourceFile)当sourceFile是一个.bmp文件时,有时就出错 是什么原因呀提示这样的错误信息:An unhandled exception of type 'System.ArgumentException' occurred in system.drawing.dllAdditional information: Invalid parameter used.
调试欢乐多
string imagePath=Server.MapPath("a.bmp");
System.Drawing.Bitmap img=new Bitmap(imagepath);
或许未能获取图片路径呢?
你的报错信息中第二项:使用了无效的参数信息
可能就是你的路径名称的写法有问题