org.sikuli.api
Class StyledRectangleTarget
java.lang.Object
org.sikuli.api.DefaultTarget
org.sikuli.api.ImageTarget
org.sikuli.api.StyledRectangleTarget
- All Implemented Interfaces:
- Target
public class StyledRectangleTarget
- extends ImageTarget
StyledRectangleTarget class is used to identify rectangular targets that have a particular rectangle style
(lines and corners) while ignoring the content inside the rectangle.
For example, it can be used to find buttons that have the same rounded corners.
StyledRectangleTarget
public StyledRectangleTarget(URL url)
- Creates a StyledRectangleTarget from an image at a given URL.
The corners will be automatically identified from the specified URL image.
- Parameters:
url - the URL to load the image of the target.
- Throws:
IOException - thrown if the image can not be loaded
StyledRectangleTarget
public StyledRectangleTarget(File file)
- Creates a StyledRectangleTarget from a File object.
The corners will be automatically identified from the specified File image.
- Parameters:
file - the File to read image data from.
- Throws:
IOException - thrown if the File can not be read.
StyledRectangleTarget
public StyledRectangleTarget(BufferedImage image)
- Creates a StyledRectangleTarget from a BufferedImage.
- Parameters:
image - the image representing this StyledRectangleTarget.
The corners will be automatically identified from the specified BufferedImage.
Copyright © 2014. All rights reserved.