public class StrictImageComparator extends java.lang.Object implements ImageComparator
| Constructor and Description |
|---|
StrictImageComparator() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
compare(java.awt.image.BufferedImage image1,
java.awt.image.BufferedImage image2)
Checks images sizes and pixels.
|
protected boolean |
compareColors(int rgb1,
int rgb2)
Could be used to override the way of comparing colors.
|
public boolean compare(java.awt.image.BufferedImage image1,
java.awt.image.BufferedImage image2)
compare in interface ImageComparatorimage1 - an image to compare.image2 - an image to compare.protected boolean compareColors(int rgb1,
int rgb2)
rgb1 - a color to compare.rgb2 - a color to compare.