floating method
Add one more floating region to this target.
When you define a floating region, you define an inner region and offsets outwards from the inner region in all directions to form an outer region. All the pixels of the outer region will be considered as matched if the pixels of the checkpoint inner region match at least one area in the baseline outer region.
Syntax
eyes.Check(Target.window().floating(max_offset, region))
eyes.Check(Target.window().floating(region, max_up_offset, max_down_offset, max_left_offset, max_right_offset))
Parameters
- max_offset
- Type:int
- The maximum amount that the region can shift in any direction and still be considered matching.
- region
- Type:Region
- An object that defines a rectangular area in the window.
- max_up_offset
- Type:int
- The maximum amount that the region can shift upwards and still be considered matching.
- max_down_offset
- Type:int
- The maximum amount that the region can shift downwards and still be considered matching.
- max_left_offset
- Type:int
- The maximum amount that the region can shift to the left and still be considered matching.
- max_right_offset
- Type:int
- The maximum amount that the region can shift to the right and still be considered matching.
Return value
- Type: Self
- The value returned is the object that called the method. You can use it to call other methods supported by the object class.
Remarks
You may call this method multiple times in a given chain; each call defines a different floating region.
Floating regions may not overlap each other or other types of regions,
such as ignore or match level regions.