C#中:如何清空PictureBox中Image已画的图
单击按钮后,显示了第一次画的图表,再次按按钮画新图时,原来的未清空,请大侠帮忙
private void button1_Click(object sender, EventArgs e)
{
Image Bmp = new Bitmap(1000, 700);
this.pictureBox1.Image = Bmp;
this.pictureBox1.SizeMode = PictureBoxSizeMode.Zoom;
Graphics gs = Graphics.FromImage(Bmp);
WellPMWork.gs = gs;
WellPMWork.Rander(); //实现画图的函数
}
我刚开始加了this.pictureBox1.Image = null; 但没用???