@Internal public class Screenshot extends Object implements Comparable<Screenshot>
| Constructor and Description |
|---|
Screenshot(File file) |
Screenshot(VisualComparableClient client,
String id,
String imageDir,
ScreenResolution resolution) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Screenshot other) |
static String |
generateFileName(String id,
ScreenResolution resolution) |
ScreenshotDiff |
getDiff(Screenshot other) |
ScreenshotDiff |
getDiff(Screenshot other,
List<BoundingBox> ignoreAreas,
boolean ignoreSingleLines) |
String |
getFileName() |
String |
getId() |
BufferedImage |
getImage() |
ScreenResolution |
getResolution() |
public Screenshot(VisualComparableClient client, String id, String imageDir, ScreenResolution resolution) throws IOException
IOExceptionpublic Screenshot(File file) throws IOException
IOExceptionpublic static String generateFileName(String id, ScreenResolution resolution)
public String getFileName()
public String getId()
public ScreenResolution getResolution()
public BufferedImage getImage() throws IOException
IOExceptionpublic int compareTo(Screenshot other)
compareTo in interface Comparable<Screenshot>public ScreenshotDiff getDiff(Screenshot other) throws IOException
IOExceptionpublic ScreenshotDiff getDiff(Screenshot other, List<BoundingBox> ignoreAreas, boolean ignoreSingleLines) throws IOException
IOExceptionCopyright © 2015 Atlassian. All rights reserved.