日期:2014-05-17 浏览次数:20812 次
1. protected override void OnPaint(PaintEventArgs e)千万别选择第二种 第一种就不闪了
{
base.OnPaint(e);
e.Graphics.DrawImage(img, 0, 0);
}
2. protected override void OnPaint(PaintEventArgs e)
{
base.OnPaint(e);
Graphics g = this.CreateGraphics();
g.DrawImage(img, 0, 0);
g.Dispose();
}