public class EyesImagesScreenshot extends EyesScreenshot
| Modifier and Type | Field and Description |
|---|---|
protected Region |
bounds |
image| Constructor and Description |
|---|
EyesImagesScreenshot(BufferedImage image)
|
EyesImagesScreenshot(BufferedImage image,
Location location) |
| Modifier and Type | Method and Description |
|---|---|
Location |
convertLocation(Location location,
CoordinatesType from,
CoordinatesType to) |
Region |
getIntersectedRegion(Region region,
CoordinatesType originalCoordinatesType,
CoordinatesType resultCoordinatesType) |
Location |
getLocationInScreenshot(Location location,
CoordinatesType coordinatesType) |
EyesScreenshot |
getSubScreenshot(Region region,
CoordinatesType coordinatesType,
boolean throwIfClipped) |
convertRegionLocation, getImage, getIntersectedRegionprotected Region bounds
public EyesImagesScreenshot(BufferedImage image, Location location)
image - The screenshot image.location - The top/left coordinates of the screenshot in context
relative coordinates type.public EyesImagesScreenshot(BufferedImage image)
image - The screenshot image.public EyesScreenshot getSubScreenshot(Region region, CoordinatesType coordinatesType, boolean throwIfClipped)
getSubScreenshot in class EyesScreenshotpublic Location convertLocation(Location location, CoordinatesType from, CoordinatesType to)
convertLocation in class EyesScreenshotpublic Location getLocationInScreenshot(Location location, CoordinatesType coordinatesType) throws OutOfBoundsException
getLocationInScreenshot in class EyesScreenshotOutOfBoundsExceptionpublic Region getIntersectedRegion(Region region, CoordinatesType originalCoordinatesType, CoordinatesType resultCoordinatesType)
getIntersectedRegion in class EyesScreenshotCopyright © 2016. All rights reserved.