Captures an image of the entire desktop.

Namespace:  Gallio.Framework
Assembly:  Gallio (in Gallio.dll) Version: 3.3.0.0 (3.3.610.0)

Syntax

C#
public static Bitmap Screenshot(
	CaptureParameters parameters
)
Visual Basic (Declaration)
Public Shared Function Screenshot ( _
	parameters As CaptureParameters _
) As Bitmap

Parameters

parameters
Type: Gallio.Common.Media..::.CaptureParameters
The capture parameters.

Return Value

The screenshot.

Exceptions

ExceptionCondition
System..::.ArgumentNullExceptionThrown if parameters is null.
Gallio.Common.Media..::.ScreenshotNotAvailableExceptionThrown if a screenshot cannot be captured at this time.

See Also