protected override void OnPaint(PaintEventArgs e) { base.OnPaint(e); e.Graphics.Clear(BackColor); sr.RenderSurface(e.Graphics); }
private void Form1_Paint(object sender, PaintEventArgs e) { e.Graphics.Clear(BackColor); sr.RenderSurface(e.Graphics); }