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)
Ctor.
|
| Modifier and Type | Method and Description |
|---|---|
Location |
convertLocation(Location location,
CoordinatesType from,
CoordinatesType to)
Convert the location.
|
Region |
getIntersectedRegion(Region region,
CoordinatesType resultCoordinatesType)
Get the intersected region.
|
Location |
getLocationInScreenshot(Location location,
CoordinatesType coordinatesType)
Get the location in the screenshot.
|
EyesScreenshot |
getSubScreenshot(Region region,
boolean throwIfClipped)
Get sub screenshot.
|
convertRegionLocation, getImageprotected 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, boolean throwIfClipped)
getSubScreenshot in class EyesScreenshotregion - The region for which we should get the sub screenshot.throwIfClipped - Throw an EyesException if the region is not fully contained in the screenshot.public Location convertLocation(Location location, CoordinatesType from, CoordinatesType to)
convertLocation in class EyesScreenshotlocation - The location which coordinates needs to be converted.from - The current coordinates type for location.to - The target coordinates type for location.public Location getLocationInScreenshot(Location location, CoordinatesType coordinatesType) throws OutOfBoundsException
getLocationInScreenshot in class EyesScreenshotlocation - The location as coordinates inside the current frame.coordinatesType - The coordinates type of location.OutOfBoundsExceptionpublic Region getIntersectedRegion(Region region, CoordinatesType resultCoordinatesType)
getIntersectedRegion in class EyesScreenshotregion - The region to intersect.resultCoordinatesType - The coordinates type of the resulting
region.Copyright © 2017. All rights reserved.