Package org.testfx.service.support
Interface CaptureSupport
-
- All Known Implementing Classes:
CaptureSupportImpl
public interface CaptureSupport
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description javafx.scene.image.ImageannotateImage(javafx.scene.shape.Shape shape, javafx.scene.image.Image image)NOT YET IMPLEMENTEDjavafx.scene.image.ImagecaptureNode(javafx.scene.Node node)Returns a snapshot of the node.javafx.scene.image.ImagecaptureRegion(javafx.geometry.Rectangle2D region)Returns a screenshot of the given region.javafx.scene.image.ImageloadImage(java.nio.file.Path path)Loads the image file from the given path.PixelMatcherResultmatchImages(javafx.scene.image.Image image0, javafx.scene.image.Image image1, PixelMatcher pixelMatcher)Compares two images and returns aPixelMatcherResultthat defines the how similar/dissimilar one was from the other.voidsaveImage(javafx.scene.image.Image image, java.nio.file.Path path)Saves the given image to the given path.voidsaveImage(javafx.scene.image.Image image, CaptureFileFormat format, java.nio.file.Path path)Saves the given image, with a provided fileformat to the given path.
-
-
-
Method Detail
-
captureNode
javafx.scene.image.Image captureNode(javafx.scene.Node node)
Returns a snapshot of the node.
-
captureRegion
javafx.scene.image.Image captureRegion(javafx.geometry.Rectangle2D region)
Returns a screenshot of the given region.
-
loadImage
javafx.scene.image.Image loadImage(java.nio.file.Path path)
Loads the image file from the given path.
-
saveImage
void saveImage(javafx.scene.image.Image image, java.nio.file.Path path)Saves the given image to the given path.
-
saveImage
void saveImage(javafx.scene.image.Image image, CaptureFileFormat format, java.nio.file.Path path)Saves the given image, with a provided fileformat to the given path.
-
annotateImage
javafx.scene.image.Image annotateImage(javafx.scene.shape.Shape shape, javafx.scene.image.Image image)NOT YET IMPLEMENTED
-
matchImages
PixelMatcherResult matchImages(javafx.scene.image.Image image0, javafx.scene.image.Image image1, PixelMatcher pixelMatcher)
Compares two images and returns aPixelMatcherResultthat defines the how similar/dissimilar one was from the other.
-
-