コード例 #1
0
        /// <summary>
        /// Gets a preview image from the source control
        /// </summary>
        /// <returns></returns>
        private Bitmap GetControlPreviewBitmap()
        {
            var preview = new Bitmap(SourceControl.Width, SourceControl.Height);

            SourceControl.DrawToBitmap(preview, new Rectangle(Point.Empty, SourceControl.Size));

            return(preview);
        }