public class EyesImagesScreenshot extends Object
| Modifier and Type | Field and Description |
|---|---|
protected Region |
bounds |
protected BufferedImage |
image |
| Constructor and Description |
|---|
EyesImagesScreenshot(BufferedImage image)
|
EyesImagesScreenshot(BufferedImage image,
Location location) |
| Modifier and Type | Method and Description |
|---|---|
protected Location |
convertLocation(Location location,
com.applitools.eyes.CoordinatesType from,
com.applitools.eyes.CoordinatesType to) |
protected Region |
convertRegionLocation(Region arg0,
com.applitools.eyes.CoordinatesType arg1,
com.applitools.eyes.CoordinatesType arg2) |
BufferedImage |
getImage() |
protected Region |
getIntersectedRegion(Region arg0,
com.applitools.eyes.CoordinatesType arg1) |
protected Region |
getIntersectedRegion(Region region,
com.applitools.eyes.CoordinatesType originalCoordinatesType,
com.applitools.eyes.CoordinatesType resultCoordinatesType) |
Location |
getLocationInScreenshot(Location location,
com.applitools.eyes.CoordinatesType coordinatesType) |
com.applitools.eyes.EyesScreenshot |
getSubScreenshot(Region region,
com.applitools.eyes.CoordinatesType coordinatesType,
boolean throwIfClipped) |
protected Region bounds
protected BufferedImage image
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 com.applitools.eyes.EyesScreenshot getSubScreenshot(Region region, com.applitools.eyes.CoordinatesType coordinatesType, boolean throwIfClipped)
protected Location convertLocation(Location location, com.applitools.eyes.CoordinatesType from, com.applitools.eyes.CoordinatesType to)
public Location getLocationInScreenshot(Location location, com.applitools.eyes.CoordinatesType coordinatesType) throws OutOfBoundsException
OutOfBoundsExceptionprotected Region getIntersectedRegion(Region region, com.applitools.eyes.CoordinatesType originalCoordinatesType, com.applitools.eyes.CoordinatesType resultCoordinatesType)
public BufferedImage getImage()
protected Region getIntersectedRegion(Region arg0, com.applitools.eyes.CoordinatesType arg1)
protected Region convertRegionLocation(Region arg0, com.applitools.eyes.CoordinatesType arg1, com.applitools.eyes.CoordinatesType arg2)
Copyright © 2016. All rights reserved.