当我运行此代码时,在我评论的那一行中,我总是收到“GDI+ 中发生一般错误”。运行时错误
private void ConstructFromResourceSaveAsGif()
{
Bitmap bmp1 = new Bitmap(typeof(Button), "Button.bmp");
//This line
bmp1.Save("c:\\button.gif", System.Drawing.Imaging.ImageFormat.Gif);
}