BufferedImage hash - Java 2D Graphics

Java examples for 2D Graphics:BufferedImage

Description

BufferedImage hash

Demo Code


//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*/
}

Related Tutorials