System.Drawing.Graphics.CopyFromScreen Method

Performs a bit-block transfer of color data, corresponding to a rectangle of pixels, from the screen to the drawing surface of the System.Drawing.Graphics.

Syntax

public void CopyFromScreen (Point upperLeftSource, Point upperLeftDestination, Size blockRegionSize)

Parameters

upperLeftSource
The point at the upper-left corner of the source rectangle.
upperLeftDestination
The point at the upper-left corner of the destination rectangle.
blockRegionSize
The size of the area to be transferred.

Remarks

The Graphics.CopyFromScreen(Point, Point, Size) methods are useful for layering one image on top of another. To specify how the source and destination colors are blended, use one of the Graphics.CopyFromScreen(int, int, int, int, Size) methods that takes a System.Drawing.CopyPixelOperation parameter.

Requirements

Namespace: System.Drawing
Assembly: System.Drawing (in System.Drawing.dll)
Assembly Versions: 2.0.0.0