May 05, 2006

Thinking before redrawing

Manuel show me some nice samples written by Federico for a better-redrawing, I ported the samples (RulerSlow and RulerFast) to C#. The idea is to improve redrawing in MonoCanvas, I also found two usefull methods Gdk.Window.FreezeUpdates and Gdk.Window.ThawUpdates for avoiding not-needed drawing, in the SWF world their equivalents would be System.Windows.Forms.Control.SuspendLayout and System.Windows.Forms.Control.ResumeLayout.