Class CaptureSupportImpl
java.lang.Object
org.testfx.service.support.impl.CaptureSupportImpl
- All Implemented Interfaces:
CaptureSupport
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionjavafx.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.ImageLoads 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 aPixelMatcherResultthat defines the how similar/dissimilar one was from the other.voidSaves the given image to the given path.voidsaveImage(javafx.scene.image.Image image, CaptureFileFormat format, Path path) Saves the given image, with a provided fileformat to the given path.
-
Field Details
-
DEFAULT_FORMAT
-
-
Constructor Details
-
CaptureSupportImpl
-
-
Method Details
-
captureNode
public javafx.scene.image.Image captureNode(javafx.scene.Node node) Description copied from interface:CaptureSupportReturns a snapshot of the node.- Specified by:
captureNodein interfaceCaptureSupport
-
captureRegion
public javafx.scene.image.Image captureRegion(javafx.geometry.Rectangle2D region) Description copied from interface:CaptureSupportReturns a screenshot of the given region.- Specified by:
captureRegionin interfaceCaptureSupport
-
loadImage
Description copied from interface:CaptureSupportLoads the image file from the given path.- Specified by:
loadImagein interfaceCaptureSupport
-
saveImage
Description copied from interface:CaptureSupportSaves the given image to the given path.- Specified by:
saveImagein interfaceCaptureSupport
-
saveImage
Description copied from interface:CaptureSupportSaves the given image, with a provided fileformat to the given path.- Specified by:
saveImagein interfaceCaptureSupport
-
annotateImage
public javafx.scene.image.Image annotateImage(javafx.scene.shape.Shape shape, javafx.scene.image.Image image) Description copied from interface:CaptureSupportNOT YET IMPLEMENTED- Specified by:
annotateImagein interfaceCaptureSupport
-
matchImages
public PixelMatcherResult matchImages(javafx.scene.image.Image image0, javafx.scene.image.Image image1, PixelMatcher pixelMatcher) Description copied from interface:CaptureSupportCompares two images and returns aPixelMatcherResultthat defines the how similar/dissimilar one was from the other.- Specified by:
matchImagesin interfaceCaptureSupport
-