- java.lang.Object
-
- org.testfx.service.support.impl.PixelMatcherBase
-
- org.testfx.service.support.impl.PixelMatcherRgb
-
- All Implemented Interfaces:
ColorMatcher
,PixelMatcher
public class PixelMatcherRgb extends PixelMatcherBase implements PixelMatcher
-
-
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 newWritableImage
usingimage0
's width andimage1
'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 ifcolor0
is close enough tocolor1
as determined by a color distance/factor.-
Methods inherited from class org.testfx.service.support.impl.PixelMatcherBase
match
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.testfx.service.support.PixelMatcher
createNonMatchColor, match
-
-
-
-
Method Detail
-
matchColors
public boolean matchColors(javafx.scene.paint.Color color0, javafx.scene.paint.Color color1)
Description copied from interface:ColorMatcher
Returns true ifcolor0
is close enough tocolor1
as determined by a color distance/factor.- Specified by:
matchColors
in interfaceColorMatcher
-
createEmptyMatchImage
public javafx.scene.image.WritableImage createEmptyMatchImage(javafx.scene.image.Image image0, javafx.scene.image.Image image1)
Description copied from interface:PixelMatcher
Creates a newWritableImage
usingimage0
's width andimage1
's height.- Specified by:
createEmptyMatchImage
in interfacePixelMatcher
-
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 interfacePixelMatcher
-
-