Ejemplo n.º 1
0
        protected override void OnPaint(PaintEventArgs e)
        {
            if (e.ClipRectangle.IsEmpty)
            {
                return;
            }

            graphics.Graphics.ResetTransform();
            surface.Clear();

            baseControl.Render(graphics);

            surface.Flip(e.Graphics, e.ClipRectangle);
        }