Java examples for 2D Graphics:BufferedImage
BufferedImage hash
//package com.java2s; import java.awt.image.BufferedImage; import java.util.Arrays; public class Main { public static int hash(BufferedImage i) { return Arrays.hashCode(i.getRGB(0, 0, i.getWidth(), i.getHeight(), null, 0, i.getWidth())); }/*from w ww . j ava2s .co m*/ }