|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectabbot.tester.ImageComparator
This code expects the availability of the com.sun.image.codec.jpeg extensions from the Sun JDK 1.3 or JRE. Original comparison code contributed by asmithmb. author: asmithmontebello@aol.com, twall
Constructor Summary | |
ImageComparator()
|
Method Summary | |
int |
compare(Object obj1,
Object obj2)
Compare two images. |
boolean |
equals(Object obj)
Comparators are equal if they're the same class. |
static void |
writeJPEG(File file,
BufferedImage img)
Write the given buffered image to disk. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ImageComparator()
Method Detail |
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |