Click or drag to resize

APIScreenshotScreenRegion Method

Take and save a screenshot of the specified screen region by X, Y coordinates and Width/Height.

Namespace:  AppRobotic
Assembly:  AppRobotic (in AppRobotic.dll) Version: 15.21.3.21 (15.21.03.21)
Syntax
C#
public string ScreenshotScreenRegion(
	string FilePathToSaveImageAsPng,
	int startX,
	int startY,
	int imageWidth,
	int imageHeight
)

Parameters

FilePathToSaveImageAsPng
Type: SystemString
File path where to save screenshot.
startX
Type: SystemInt32
Top left X coordinate.
startY
Type: SystemInt32
Top left Y coordinate.
imageWidth
Type: SystemInt32
Screenshot width from Top Left point.
imageHeight
Type: SystemInt32
Screenshot height from Top Left point.

Return Value

Type: String
Returns string containing 'success' or error message.
See Also