Exemplo n.º 1
0
        public void DrawToBitmapFull(Bitmap bitmap, int x, int y)
        {
            foreach (Control control in Controls)
            {
                IDrawToBitmapFull dtbfControl = control as IDrawToBitmapFull;

                dtbfControl.DrawToBitmapFull(bitmap, x + control.Left, y + control.Top);
            }
        }
Exemplo n.º 2
0
        public void DrawToGraphics(Graphics g)
        {
            foreach (Control control in Controls)
            {
                IDrawToBitmapFull dtbfControl = control as IDrawToBitmapFull;

                Bitmap bitmap = new Bitmap(control.Width, control.Height);

                dtbfControl.DrawToBitmapFull(bitmap, 0, 0);

                g.DrawImage(bitmap, control.Left, control.Top);
            }
        }