当我尝试将图像放入 Windows 窗体上的位图中时出现此错误...
class PlayerPlane
{
private Bitmap playerPlaneImg { get; set; }
private Graphics graphics { get; set; }
private int playerLife { get; set; }
private int playerSpeed { get; set; }
public PlayerPlane()
{
playerPlaneImg = new Bitmap("Back.bmp"); //ERROR HERE ?!
graphics.DrawImage(playerPlaneImg, 60, 10);
}
}
图片位于我的项目中:http: //i.imgur.com/ZOEZFFA.png ....