UtilImageTakeScreenshotFromObject Method

Takes a screenshot of an object in the screen.

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 TakeScreenshotFromObject(
	IntPtr hWnd,
	bool includeMouse,
	PixelFormat pixelFormat = PixelFormat.Format32bppArgb
)

Parameters

hWnd  IntPtr
The IntPtr window handle to the object.
includeMouse  Boolean

[Missing <param name="includeMouse"/> documentation for "M:DevCase.Core.Media.Graphics.UtilImage.TakeScreenshotFromObject(System.IntPtr,System.Boolean,System.Drawing.Imaging.PixelFormat)"]

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.

Exceptions

ArgumentException The specified handle is not a valid window handle (hWnd).
ArgumentException The specified window is hidden.
Win32Exception

See Also