Interface PixelMatcher

All Superinterfaces:
ColorMatcher
All Known Implementing Classes:
PixelMatcherBase, PixelMatcherRgb

public interface PixelMatcher extends ColorMatcher
  • 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.
    match(javafx.scene.image.Image image0, javafx.scene.image.Image image1)
    Returns a PixelMatcherResult that indicates how similar/dissimilar the two images were.

    Methods inherited from interface org.testfx.service.support.ColorMatcher

    matchColors
  • Method Details

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