在C#的项目中,使用GDI+呈现图像,出现下面的错误:
privatevoidpictureBox3_Click(objectsender,EventArgse){BitmapmyBitmap=newBitmap(@"D:\1...
private void pictureBox3_Click(object sender, EventArgs e)
{
Bitmap myBitmap = new Bitmap(@"D:\123.bmp");
Graphics g = this.CreateGraphics();
g.DrawImage(myBitmap, 28, 94);
}
输出出现下面的错误:
A first chance exception of type 'System.IO.DirectoryNotFoundException' occurred in mscorlib.dll
An unhandled exception of type 'System.IO.DirectoryNotFoundException' occurred in mscorlib.dll
Additional information: 无法显示错误消息,原因是无法找到包含此错误消息的可选资源程序集,这个是什么原因啊~~ 展开
{
Bitmap myBitmap = new Bitmap(@"D:\123.bmp");
Graphics g = this.CreateGraphics();
g.DrawImage(myBitmap, 28, 94);
}
输出出现下面的错误:
A first chance exception of type 'System.IO.DirectoryNotFoundException' occurred in mscorlib.dll
An unhandled exception of type 'System.IO.DirectoryNotFoundException' occurred in mscorlib.dll
Additional information: 无法显示错误消息,原因是无法找到包含此错误消息的可选资源程序集,这个是什么原因啊~~ 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询