| Package | Description |
|---|---|
| com.applitools.eyes | |
| com.applitools.utils |
| Modifier and Type | Field and Description |
|---|---|
static Region |
Region.EMPTY |
| Modifier and Type | Method and Description |
|---|---|
Region |
EyesScreenshot.convertRegionLocation(Region region,
CoordinatesType from,
CoordinatesType to)
Converts a region's location coordinates with the
from
coordinates type to the to coordinates type. |
Region |
EyesScreenshot.getIntersectedRegion(Region region,
CoordinatesType coordinatesType)
Get the intersection of the given region with the screenshot.
|
abstract Region |
EyesScreenshot.getIntersectedRegion(Region region,
CoordinatesType originalCoordinatesType,
CoordinatesType resultCoordinatesType)
Get the intersection of the given region with the screenshot.
|
Region |
Region.offset(int dx,
int dy)
Get an offset region.
|
Region |
Region.scale(double scaleRatio)
Get a region which is a scaled version of the current region.
|
| Modifier and Type | Method and Description |
|---|---|
Iterable<Region> |
Region.getSubRegions(RectangleSize subRegionSize)
|
Iterable<Region> |
Region.getSubRegions(RectangleSize subRegionSize,
boolean isFixedSize)
Returns a list of sub-regions which compose the current region.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
Region.contains(Region other)
Check if a region is contained within the current region.
|
Region |
EyesScreenshot.convertRegionLocation(Region region,
CoordinatesType from,
CoordinatesType to)
Converts a region's location coordinates with the
from
coordinates type to the to coordinates type. |
Region |
EyesScreenshot.getIntersectedRegion(Region region,
CoordinatesType coordinatesType)
Get the intersection of the given region with the screenshot.
|
abstract Region |
EyesScreenshot.getIntersectedRegion(Region region,
CoordinatesType originalCoordinatesType,
CoordinatesType resultCoordinatesType)
Get the intersection of the given region with the screenshot.
|
abstract EyesScreenshot |
EyesScreenshot.getSubScreenshot(Region region,
CoordinatesType coordinatesType,
boolean throwIfClipped)
Returns a part of the screenshot based on the given region.
|
void |
Region.intersect(Region other)
Replaces this region with the intersection of itself and
other |
boolean |
Region.isIntersected(Region other)
Check if a region is intersected with the current region.
|
| Constructor and Description |
|---|
Region(Region other) |
| Modifier and Type | Method and Description |
|---|---|
static BufferedImage |
ImageUtils.cropImage(BufferedImage image,
Region regionToCrop)
Removes a given region from the image.
|
static BufferedImage |
ImageUtils.getImagePart(BufferedImage image,
Region region)
Get a copy of the part of the image given by region.
|
Copyright © 2017. All rights reserved.