Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Checking if two images are identical

 
Micho Lee
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Rancher
Posts: 13064
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Wanderer
Sheriff
Posts: 18671
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic