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
)
Function Picture (
clientX As Integer,
clientY As Integer,
width As Integer,
height As Integer,
Optional mouse As Boolean = true
) As Image
Dim instance As IVisualObject
Dim clientX As Integer
Dim clientY As Integer
Dim width As Integer
Dim height As Integer
Dim mouse As Boolean
Dim returnValue As Image
returnValue = instance.Picture(clientX,
clientY, width, height, mouse)
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:
ImageThe Image object that represents the captured image.
Exceptions See Also