Re: Double Buffering в System.Windows.Forms.Control
От: Kluge  
Дата: 25.11.02 15:44
Оценка:
Hi McSeem2!

this.SetStyle(ControlStyles.AllPaintingInWmPaint,
          | ControlStyles.ResizeRedraw,
              | ControlStyles.Opaque, true);    
...
protected override void OnPaint(PaintEventArgs pea)
{
    base.OnPaint(pea);
    pea.Graphics.DrawImage(this.iCanvas,
                           pea.ClipRectangle,
                           pea.ClipRectangle,
                           GraphicsUnit.Pixel);
}


Такой вариант у меня отрисовываеться быстрее всего.
Лоботомию в массы! (с)
 
Подождите ...
Wait...
Пока на собственное сообщение не было ответов, его можно удалить.