Module org.testfx

Interface CaptureSupport

    • Method Summary

      Modifier and Type Method 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​(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, Path path)
      Saves the given image 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​(Path path)
        Loads the image file from the given path.
      • saveImage

        void saveImage​(javafx.scene.image.Image image,
                       Path path)
        Saves the given image 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 a PixelMatcherResult that defines the how similar/dissimilar one was from the other.