UtilImageTakeScreenshotFromRegion(Point, Size, Boolean, PixelFormat) Method

Takes a screenshot of a screen region.

Definition

Namespace: DevCase.Core.Media.Graphics
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public static Image TakeScreenshotFromRegion(
	Point location,
	Size size,
	bool includeMouse,
	PixelFormat pixelFormat = PixelFormat.Format32bppArgb
)

Parameters

location  Point
The X-coordinate is the point at the upper-left corner of the region. The Y-coordinate is the point at the upper-left corner of the region.
size  Size
The size of the area to be transferred.
includeMouse  Boolean
If set to , the mouse is drawn in the resulting image.
pixelFormat  PixelFormat  (Optional)
The image pixel format.

Return Value

Image
The resulting image.

Example

This is a code example.
C#
No code example is currently available or this language may not be supported.

See Also