Click or drag to resize

IVisualObjectPicture Method (Int32, Int32, Int32, Int32, Boolean)

Captures the image of the specified rectangular area of the object.

Namespace:  SmartBear.TestLeft.TestObjects
Assembly:  SmartBear.TestLeft (in SmartBear.TestLeft.dll) Version: 14.70.237.11 (14.70.237.11)
Syntax
Image Picture(
	int clientX,
	int clientY,
	int width,
	int height,
	bool mouse = true
)

Parameters

clientX
Type: SystemInt32
The horizontal position of the area.
clientY
Type: SystemInt32
The vertical position of the area.
width
Type: SystemInt32
The width of the area.
height
Type: SystemInt32
The height of the area.
mouse (Optional)
Type: SystemBoolean
Specifies whether the captured image will contain the mouse pointer. The default value is true and includes the mouse pointer in the image.

Return Value

Type: Image
The Image object that represents the captured image.
Exceptions
ExceptionCondition
InvocationExceptionWill be thrown if invocation fails.
WebExceptionWill be thrown if there are network problems.
See Also