public class ImageComparator extends Object implements Comparator
Modifier and Type | Field and Description |
---|---|
static String |
IMAGE_SUFFIX |
Constructor and Description |
---|
ImageComparator() |
Modifier and Type | Method and Description |
---|---|
int |
compare(Object obj1,
Object obj2)
Compare two images.
|
boolean |
equals(Object obj)
Comparators are equal if they're the same class.
|
static void |
writeImage(File file,
BufferedImage img) |
static void |
writeJPEG(File file,
BufferedImage img)
Write the given buffered image to disk.
|
static void |
writePNG(File file,
BufferedImage img) |
public static String IMAGE_SUFFIX
public static void writeImage(File file, BufferedImage img) throws IOException
IOException
public static void writePNG(File file, BufferedImage img) throws IOException
IOException
public static void writeJPEG(File file, BufferedImage img) throws IOException
IOException
public int compare(Object obj1, Object obj2)
compare
in interface Comparator
public boolean equals(Object obj)
equals
in interface Comparator
equals
in class Object
Abbot is hosted on