title: How to compare two images?
body: <pre><code>public void winCheck()
  {
      if (button1.Image == img1)
      {
          w1 = "P2";
          button1.Image = new Bitmap(@"win_cross.png");
          button2.Image = new Bitmap(@"win_cross.png");
          button3.Image = new Bitmap(@"win_cross.png");
      }
  }
  </code></pre>
  
  <p>Here both <code>button1.Image</code> and <code>img1</code> have same image but still, the control doesn't go into the <code>if</code> block.
  Is their any property of both such that value of both will be same.</p>