UtilSharpDXTakeScreenshot(Int32, Boolean) Method

Captures the screen output using the specified 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(
	int adapterIndex,
	bool includeMouse
)

Parameters

adapterIndex  Int32
The index of the graphics card adapter.

Set this value to 0 if you don't have more than one graphics card.

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