예제 #1
0
        private static Bitmap converttobitmap(Income control)
        {
            Bitmap    bitmap   = new Bitmap(control.Width, control.Height);
            Graphics  graphics = Graphics.FromImage(bitmap);
            Rectangle rect     = control.RectangleToScreen(control.ClientRectangle);

            graphics.CopyFromScreen(rect.Location, Point.Empty, control.Size);

            return(bitmap);
        }