public class CaptureSupportImpl extends java.lang.Object implements CaptureSupport
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
PNG_IMAGE_FORMAT |
| Constructor and Description |
|---|
CaptureSupportImpl(BaseRobot baseRobot) |
| Modifier and Type | Method and Description |
|---|---|
javafx.scene.image.Image |
annotateImage(javafx.scene.shape.Shape shape,
javafx.scene.image.Image image)
NOT YET IMPLEMENTED
|
javafx.scene.image.Image |
captureNode(javafx.scene.Node node)
Returns a snapshot of the node.
|
javafx.scene.image.Image |
captureRegion(javafx.geometry.Rectangle2D region)
Returns a screenshot of the given region.
|
javafx.scene.image.Image |
loadImage(java.nio.file.Path path)
Loads the image file from the given path.
|
PixelMatcherResult |
matchImages(javafx.scene.image.Image image0,
javafx.scene.image.Image image1,
PixelMatcher pixelMatcher)
Compares two images and returns a
PixelMatcherResult that defines
the how similar/dissimilar one was from the other. |
void |
saveImage(javafx.scene.image.Image image,
java.nio.file.Path path)
Saves the given image to the given path.
|
public static final java.lang.String PNG_IMAGE_FORMAT
public CaptureSupportImpl(BaseRobot baseRobot)
public javafx.scene.image.Image captureNode(javafx.scene.Node node)
CaptureSupportcaptureNode in interface CaptureSupportpublic javafx.scene.image.Image captureRegion(javafx.geometry.Rectangle2D region)
CaptureSupportcaptureRegion in interface CaptureSupportpublic javafx.scene.image.Image loadImage(java.nio.file.Path path)
CaptureSupportloadImage in interface CaptureSupportpublic void saveImage(javafx.scene.image.Image image,
java.nio.file.Path path)
CaptureSupportsaveImage in interface CaptureSupportpublic javafx.scene.image.Image annotateImage(javafx.scene.shape.Shape shape,
javafx.scene.image.Image image)
CaptureSupportannotateImage in interface CaptureSupportpublic PixelMatcherResult matchImages(javafx.scene.image.Image image0, javafx.scene.image.Image image1, PixelMatcher pixelMatcher)
CaptureSupportPixelMatcherResult that defines
the how similar/dissimilar one was from the other.matchImages in interface CaptureSupport