org.zkoss.ztl.util.image
Interface Comparator

All Known Implementing Classes:
DefaultComparator

public interface Comparator

An image comparator to compare two images.

Author:
jumperchen

Method Summary
 java.awt.image.BufferedImage compare(java.awt.image.BufferedImage b1, java.awt.image.BufferedImage b2)
          Return whether the two images are the same.
 

Method Detail

compare

java.awt.image.BufferedImage compare(java.awt.image.BufferedImage b1,
                                     java.awt.image.BufferedImage b2)
Return whether the two images are the same. If null, the images are the same, otherwise, the returned image is the change indicator.

Parameters:
b1 - the source of the base image
b2 - the compared image.


Copyright © 2014. All Rights Reserved.