Module org.testfx

Interface PixelMatcher

    • Method Summary

      Modifier and Type Method Description
      javafx.scene.image.WritableImage createEmptyMatchImage​(javafx.scene.image.Image image0, javafx.scene.image.Image image1)
      Creates a new WritableImage using image0's width and image1's height.
      javafx.scene.paint.Color createMatchColor​(javafx.scene.paint.Color color0, javafx.scene.paint.Color color1)
      Creates a color that represents a match between the two images' pixels.
      default javafx.scene.paint.Color createNonMatchColor​(javafx.scene.paint.Color color0, javafx.scene.paint.Color color1)
      Creates a color that represents a mismatch between the two images' pixels.
      PixelMatcherResult match​(javafx.scene.image.Image image0, javafx.scene.image.Image image1)
      Returns a PixelMatcherResult that indicates how similar/dissimilar the two images were.
    • Method Detail

      • match

        PixelMatcherResult match​(javafx.scene.image.Image image0,
                                 javafx.scene.image.Image image1)
        Returns a PixelMatcherResult that indicates how similar/dissimilar the two images were.
      • createEmptyMatchImage

        javafx.scene.image.WritableImage createEmptyMatchImage​(javafx.scene.image.Image image0,
                                                               javafx.scene.image.Image image1)
        Creates a new WritableImage using image0's width and image1's height.
      • createMatchColor

        javafx.scene.paint.Color createMatchColor​(javafx.scene.paint.Color color0,
                                                  javafx.scene.paint.Color color1)
        Creates a color that represents a match between the two images' pixels.
      • createNonMatchColor

        default javafx.scene.paint.Color createNonMatchColor​(javafx.scene.paint.Color color0,
                                                             javafx.scene.paint.Color color1)
        Creates a color that represents a mismatch between the two images' pixels.