private void Form1_Load(object sender, EventArgs e)
{
image1 = new Bitmap(模仿时钟程序.Properties.Resources.shizhen);
BackgroundImage = new Bitmap(this.Width, this.Height);
Graphics g = Graphics.FromImage(BackgroundImage);
g.DrawImage(image1, 0, 0, image1.Width, image1.Height);
}
image1 = new Bitmap(模仿时钟程序.Properties.Resources.shizhen);
这里出错误了,没将未将对象引用设置到对象的实例;
{
image1 = new Bitmap(模仿时钟程序.Properties.Resources.shizhen);
BackgroundImage = new Bitmap(this.Width, this.Height);
Graphics g = Graphics.FromImage(BackgroundImage);
g.DrawImage(image1, 0, 0, image1.Width, image1.Height);
}
image1 = new Bitmap(模仿时钟程序.Properties.Resources.shizhen);
这里出错误了,没将未将对象引用设置到对象的实例;