System.Windows.Forms.Control.DrawToBitmap(System.Drawing.Bitmap, System.Drawing.Rectangle)

Here are the examples of the csharp api class System.Windows.Forms.Control.DrawToBitmap(System.Drawing.Bitmap, System.Drawing.Rectangle) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

7 Examples 7

1. Example

Project: VisualPlus
Source File: GraphicsManager.cs
public static void DrawControl(Control control, Point point)
        {
            Bitmap _bitmap = new Bitmap(control.Size.Width, control.Size.Height);
            control.DrawToBitmap(_bitmap, new Rectangle(point.X, point.Y, _bitmap.Width, _bitmap.Height));
        }

2. Example

Project: BloomDesktop
Source File: BetterTooltipTransparentOverlay.cs
protected override void OnPaint(PaintEventArgs e)
		{
			if (Parent == null)
				return;

			// Draw the control we're overlaying. On Linux it might not show properly
			// otherwise, especially since it is disabled.
			using (var behind = new Bitmap(Parent.ClientSize.Width, Parent.ClientSize.Height))
			{
				_overlayedControl.DrawToBitmap(behind, _overlayedControl.Bounds);
				e.Graphics.DrawImage(behind, 0, 0);
			}
		}

3. Example

Project: AltoControls
Source File: Transparenter.cs
public static void MakeTransparent(Control control, Graphics g)
        {
            var parent = control.Parent;
            if (parent == null) return;
            var bounds = control.Bounds;
            var siblings = parent.Controls;
            int index = siblings.IndexOf(control);
            Bitmap behind = null;
            for (int i = siblings.Count - 1; i > index; i--)
            {
                var c = siblings[i];
                if (!c.Bounds.IntersectsWith(bounds)) continue;
                if (behind == null)
                    behind = new Bitmap(control.Parent.ClientSize.Width, control.Parent.ClientSize.Height);
                c.DrawToBitmap(behind, c.Bounds);
            }
            if (behind == null) return;
            g.DrawImage(behind, control.ClientRectangle, bounds, GraphicsUnit.Pixel);
            behind.Dispose();
        }

4. Example

Project: Tibialyzer
Source File: NotificationManager.cs
public static void ShowNotification(NotificationForm f, string command, string screenshot_path = "")/n ..... /n //View Source file for more details /n }

5. Example

Project: FloatingGlucose
Source File: FloatingGlucose.cs
private Bitmap renderGlucoseChart(Color backColor, Color foreColor)
        {
            var w = th/n ..... /n //View Source file for more details /n }

6. Example

Project: AltoControls
Source File: Circular Progress Bar.cs
protected override void OnPaint(PaintEventArgs e)
        {
            #region Transparency
       /n ..... /n //View Source file for more details /n }

7. Example

Project: Tibialyzer
Source File: ScanningManager.cs
public static bool ScanMemory() {
            ReadMemoryResults readMemoryResults = ReadMemoryManage/n ..... /n //View Source file for more details /n }