UtilImageTakeScreenshotFromRegion(Rectangle, 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(
	Rectangle rect,
	bool includeMouse,
	PixelFormat pixelFormat = PixelFormat.Format32bppArgb
)

Parameters

rect  Rectangle
A Rectangle structure that represents the location and size of the region.
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