Table of Contents

Method GetScreenshot

Namespace
OpenCAD2D.Remote
Assembly
OpenCAD2D.Remote.dll

GetScreenshot(int)

Gets the picture of the drawing canvas of the window as it last drew it, nothing shown or changed: the picture --screenshot --canvas writes, so that what the user sees can be compared with a render of the same drawing.

public CadRemoteScreenshot GetScreenshot(int maxSide = 0)

Parameters

maxSide int

The most pixels along a side; a larger picture is made smaller, keeping its shape; 0 for as it is.

Returns

CadRemoteScreenshot

The picture, its size and the part of the drawing it shows.

Exceptions

ArgumentOutOfRangeException

Thrown when the number is below 0 or above 16384.

CadRemoteException

Thrown when the app has no window (a test server), shows no drawing, or is of a version that does not know the request.