locked
How to judge whether the specific point is inside a polygon or not using GDI+? RRS feed

  • Question

  • All,

    Is there any mehod can be used to judge whether the specific point is inside a polygon? Seems GDI+ doesn't provide such method. however, it only provides judge whether a rectangle is containing the point or not like the following code snippet.

    RectangleF rect = region.GetBounds(e.CreateGraphics());
    
    rect.Contains(point);






     

    Thanks in advance,

    Yuanzi


    Enjoy life
    Wednesday, July 1, 2009 2:26 AM

Answers