@Unstable(reason="needs more tests") public class CaptureSupportImpl extends Object implements CaptureSupport
Modifier and Type | Field and Description |
---|---|
static String |
PNG_IMAGE_FORMAT |
Constructor and Description |
---|
CaptureSupportImpl(BaseRobot baseRobot) |
Modifier and Type | Method and Description |
---|---|
Image |
annotateImage(Shape shape,
Image image)
NOT YET IMPLEMENTED
|
Image |
captureNode(Node node)
Returns a snapshot of the node
|
Image |
captureRegion(Rectangle2D region)
Returns a screenshot of the given region
|
Image |
loadImage(Path path)
Loads the image file from the given path
|
PixelMatcherResult |
matchImages(Image image0,
Image image1,
PixelMatcher pixelMatcher)
Compares two images and returns a
PixelMatcherResult that defines
the how similar/dissimilar one was from the other. |
void |
saveImage(Image image,
Path path)
Saves the given image to the given path
|
public static final String PNG_IMAGE_FORMAT
public CaptureSupportImpl(BaseRobot baseRobot)
public Image captureNode(Node node)
CaptureSupport
captureNode
in interface CaptureSupport
public Image captureRegion(Rectangle2D region)
CaptureSupport
captureRegion
in interface CaptureSupport
public Image loadImage(Path path)
CaptureSupport
loadImage
in interface CaptureSupport
public void saveImage(Image image, Path path)
CaptureSupport
saveImage
in interface CaptureSupport
public Image annotateImage(Shape shape, Image image)
CaptureSupport
annotateImage
in interface CaptureSupport
public PixelMatcherResult matchImages(Image image0, Image image1, PixelMatcher pixelMatcher)
CaptureSupport
PixelMatcherResult
that defines
the how similar/dissimilar one was from the other.matchImages
in interface CaptureSupport