title: How to create a clickable irregularly-shaped region in c#
body: <p>I have an irregularly-shaped picture like a heart or any random shape.
  I can make it transparent visually, but I need to make it clickable only on the shape area. I heard that I should use "Region" for this, but I can't figure out how. </p>
  
  <p>I tried to search all pixels that aren't null, transparent, or empty and create a point array with them, but I can't create/reshape the current control region.  I'm trying to make a custom control that you can select a button or picture, and they are irregularly-shaped and close to one another.</p>
  
  <p>Here is what I'm dealing with:
  <img src="https://i.stack.imgur.com/SligA.png" alt="enter image description here"></p>
  
  <p>As you can see in the picture, there are 8 different parts (assuming the right and left sides are combined). As you can see, they are close to each other, and some of them are even fit in the empty space between others.</p>
  
  <p>My goal is, for example, if I clicked on Pectorals (red zone in the figure), it will change to the colored version of it, and a bunch of other code will run.</p>
  
  <p>The problem is, by default when we add any Picture with a <code>PictureBox</code>, it will create a <code>Rectangle</code> around that picture starting from the boundaries of it. So if I place two pictures (as in the figure) close together, one's empty zone prevents me from clicking the other's.</p>
  
  <p>Also it raises the wrong object's <code>ClickEvent</code> because of this problem.</p>
  
  <p>I'm trying to set "Raise Event Region" that I assume we called it <code>Graphic Region</code> just where the picture exists. I can collect positions of pixels with a loop which determines which coordinates of that picture has "Color" (meaning it is part of the picture, the area that I want clickable) but I can't limit that area with that data.</p>
  
  <p>An example of what I'm trying to achieve: <a href="https://www.youtube.com/watch?v=K_JzL4kzCoE" rel="nofollow noreferrer">https://www.youtube.com/watch?v=K_JzL4kzCoE</a></p>
  
  <p>What is the best way to do this?</p>