Interface CaptureSupport

All Known Implementing Classes:
CaptureSupportImpl

public 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
    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 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.
    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

      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.
    • saveImage

      void saveImage(javafx.scene.image.Image image, CaptureFileFormat format, 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 a PixelMatcherResult that defines the how similar/dissimilar one was from the other.