UtilSharpDXTakeScreenshot(Boolean) Method

Capture the screen output using the default graphics card adapter.

This DirectX based methodology is useful to take screenshot of games that are running in full screen.

However, using this methodology for other common desktop screen captures will produce unexpected results (such as wrong colors); so for common screenshots you should use the methods exposed in UtilImage instead.

Definition

Namespace: DevCase.ThirdParty.SharpDX
Assembly: DevCase.net48.ThirdParty.SharpDX (in DevCase.net48.ThirdParty.SharpDX.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public static Image TakeScreenshot(
	bool includeMouse
)

Parameters

includeMouse  Boolean
If set to , the mouse is drawn in the resulting image.

Return Value

Image
The resulting Image.

Remarks

Note: Some functionalities of this assembly may require to install one or all of the listed NuGet packages:

SharpDX

Example

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

See Also