Module org.testfx

Class PixelMatcherRgb

    • Constructor Summary

      Constructors 
      Constructor Description
      PixelMatcherRgb()  
      PixelMatcherRgb​(double minColorDistFactor, double colorBlendFactor)  
    • 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.
      boolean matchColors​(javafx.scene.paint.Color color0, javafx.scene.paint.Color color1)
      Returns true if color0 is close enough to color1 as determined by a color distance/factor.
    • Constructor Detail

      • PixelMatcherRgb

        public PixelMatcherRgb()
      • PixelMatcherRgb

        public PixelMatcherRgb​(double minColorDistFactor,
                               double colorBlendFactor)
    • Method Detail

      • matchColors

        public boolean matchColors​(javafx.scene.paint.Color color0,
                                   javafx.scene.paint.Color color1)
        Description copied from interface: ColorMatcher
        Returns true if color0 is close enough to color1 as determined by a color distance/factor.
        Specified by:
        matchColors in interface ColorMatcher
      • createEmptyMatchImage

        public javafx.scene.image.WritableImage createEmptyMatchImage​(javafx.scene.image.Image image0,
                                                                      javafx.scene.image.Image image1)
        Description copied from interface: PixelMatcher
        Creates a new WritableImage using image0's width and image1's height.
        Specified by:
        createEmptyMatchImage in interface PixelMatcher
      • createMatchColor

        public javafx.scene.paint.Color createMatchColor​(javafx.scene.paint.Color color0,
                                                         javafx.scene.paint.Color color1)
        Description copied from interface: PixelMatcher
        Creates a color that represents a match between the two images' pixels.
        Specified by:
        createMatchColor in interface PixelMatcher