我收到此错误
System.ArgumentException: 参数无效。在 System.Drawing.Bitmap..ctor(String filename) at PressRoom.ImageHandler.getResizedImage(String path, Int32 width, Int32 height)
在线
byte[] getResizedImage(String path, int width, int height)
{
if (path!=null)
{
Bitmap imgIn = new Bitmap(path); // exception is thrown
double y = imgIn.Height;
double x = imgIn.Width;
}
我该如何处理这个异常?
鸿蒙传说
相关分类