Package org.testfx.service.support
Interface CaptureSupport
- All Known Implementing Classes:
CaptureSupportImpl
public interface CaptureSupport
-
Method Summary
Modifier and TypeMethodDescriptionjavafx.scene.image.Image
annotateImage
(javafx.scene.shape.Shape shape, javafx.scene.image.Image image) NOT YET IMPLEMENTEDjavafx.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
Loads the image file from the given path.matchImages
(javafx.scene.image.Image image0, javafx.scene.image.Image image1, PixelMatcher pixelMatcher) Compares two images and returns aPixelMatcherResult
that defines the how similar/dissimilar one was from the other.void
Saves the given image to the given path.void
saveImage
(javafx.scene.image.Image image, CaptureFileFormat format, Path path) Saves the given image, with a provided fileformat to the given path.
-
Method Details
-
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
Loads the image file from the given path. -
saveImage
Saves the given image to the given path. -
saveImage
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 aPixelMatcherResult
that defines the how similar/dissimilar one was from the other.
-