Java Compare one BufferedImage to Another

前端 未结 3 1805
-上瘾入骨i
-上瘾入骨i 2020-12-21 07:57

I need to compare two buffered images to see if they are the exact same. Simply saying if that equals that doesn\'t work. My current method is

                       


        
3条回答
  •  感情败类
    2020-12-21 08:44

    What about hash codes?

    img1.getData().hashCode().equals(img2.getData().hashCode())
    

提交回复
热议问题