title: javafx how to test image equality?
body: <pre><code>for (int i = 0; i &lt; image1Width; i++)
  {
    for (int j = 0; j &lt; image1Height; j++)
    {
      if (image1.getPixelReader().getColor(i, j) != image2.getPixelReader().getColor(i, j)) return false;
    }
  }
  </code></pre>
  
  <p>This is what I have at the moment.  I pass the function two Images (javafx.scene.image.Image).  This means that this should never return false when the images are the same.  Unfortunately, this returns false when I pass it the same image.  </p>
  
  <p>Thanks.</p>