I have a freehand shape, drawn on a PictureBox in a Windows Form. For example:
Now I need to determine whether a given point belongs to the shape.
As I know, I should have to make a Region object, then call its IsVisible() member function to find out the answer. I know how to do it on a region made by rectangles, arcs, circles, and so on, but my shape is free-hand, and I don't know how to set up a free-hand region.
Also, I have read the How to create a clickable irregularly-shaped region in c#, which is so useful, but I didn't grasp the point because I'm a newbie.
If this is a duplicate question, please note me to delete my question, though I have done my best to find out a solution, but I was out of luck.
P.N.: Thanks to TaW for his/her helpful and accepted answer.