Graphics.CopyFromScreen

CopyFromScreen(Point, Point, Size)

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

public void CopyFromScreen(Point upperLeftSource, Point upperLeftDestination, Size blockRegionSize)
ParameterTypeDescription
upperLeftSourcePointThe point at the upper-left corner of the source rectangle.
upperLeftDestinationPointThe point at the upper-left corner of the destination rectangle.
blockRegionSizeSizeThe size of the area to be transferred.

See Also


CopyFromScreen(int, int, int, int, Size, CopyPixelOperation)

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

public void CopyFromScreen(int sourceX, int sourceY, int destinationX, int destinationY, 
    Size blockRegionSize, CopyPixelOperation copyPixelOperation)
ParameterTypeDescription
sourceXInt32The x-coordinate of the point at the upper-left corner of the source rectangle.
sourceYInt32The y-coordinate of the point at the upper-left corner of the source rectangle.
destinationXInt32The x-coordinate of the point at the upper-left corner of the destination rectangle.
destinationYInt32The y-coordinate of the point at the upper-left corner of the destination rectangle.
blockRegionSizeSizeThe size of the area to be transferred.
copyPixelOperationCopyPixelOperationOne of the CopyPixelOperation values.

See Also


CopyFromScreen(Point, Point, Size, CopyPixelOperation)

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

public void CopyFromScreen(Point upperLeftSource, Point upperLeftDestination, Size blockRegionSize, 
    CopyPixelOperation copyPixelOperation)
ParameterTypeDescription
upperLeftSourcePointThe point at the upper-left corner of the source rectangle.
upperLeftDestinationPointThe point at the upper-left corner of the destination rectangle.
blockRegionSizeSizeThe size of the area to be transferred..
copyPixelOperationCopyPixelOperationne of the CopyPixelOperation values.

See Also