积极答复者
运行报路径有问题

问题
-
Bitmap image1 = new Bitmap(@"E:\图像处理123\lotus.bmp");
运行报路径有问题
- 已更改类型 肖小勇Moderator 2010年8月25日 3:41
答案
-
你好!
检查文件是否存在,扩展名是否一样。最好在使用前判断下
string path = @"E:\图像处理123\lotus.bmp"; if (File.Exists(path)) { Bitmap image1 = new Bitmap(path); }
知识改变命运,奋斗成就人生!- 已标记为答案 肖小勇Moderator 2010年8月25日 11:25
-
全部回复
-
你好!
检查文件是否存在,扩展名是否一样。最好在使用前判断下
string path = @"E:\图像处理123\lotus.bmp"; if (File.Exists(path)) { Bitmap image1 = new Bitmap(path); }
知识改变命运,奋斗成就人生!- 已标记为答案 肖小勇Moderator 2010年8月25日 11:25
-