title: How to use Image.GetBounds for List of images?
body: <p>Attempting to react to user click on any of a list of images which are on the WinForm (no pictureboxes used). I'm using GetBounds to check the location against the image area, walking through the list. I thought what I had should work, but after tinkering and reading online for a couple of hours I cannot see why it doesn't work.</p>
  
  <p>imgPos is a list of Image type, starmap has been set to true.</p>
  
  <pre><code> private void Form1_MouseUp(object sender, MouseEventArgs e)
      {
          if (starmap == true)
          {
              GraphicsUnit unit = GraphicsUnit.Pixel;
  
              foreach (Image pic in imgPos)
              {
                  if (pic.GetBounds(ref unit).Contains(e.Location))
                  {
                      MessageBox.Show("Clicked on image.");
                  }
              }
          }
      }
  </code></pre>
  
  <p>Help appreciated, thank you in advance.</p>