File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Java in General and the fly likes Checking if two images are identical Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Checking if two images are identical" Watch "Checking if two images are identical" New topic

Checking if two images are identical

Micho Lee

Joined: Oct 21, 2003
Posts: 14
Is there a way to compare images or image objects in java to see if two images are identical?

Thanks a bunch!
William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 13037
I think you are going to have to extract the images to int[] of pixels in order to compare them. The Image.equals method just inherits from Object.
Jim Yingst

Joined: Jan 30, 2000
Posts: 18671
Miho, please don't post duplicate questions in different forums. We don't want people replying without reading what others have already said; it wastes time. Followups go here please. Thanks.

"I'm not back." - Bill Harding, Twister
I agree. Here's the link:
subject: Checking if two images are identical
It's not a secret anymore!