0

In my Winforms application, I am painting 2D shapes.

Where i click, I want to fill the surrounding shape (or region in case of intersection of shapes). How can I get the region surrounding a point?

Thanks in advance.

Roy Dictus
  • 32,551
  • 8
  • 60
  • 76
Iorn Man
  • 267
  • 8
  • 21
  • You can compose a region from a set of 'shapes', lines, points or rectangles. – leppie Dec 07 '12 at 06:29
  • @leppie : i have the point only,how to get region around it ?? – Iorn Man Dec 07 '12 at 06:32
  • Check this for intersection with polygons: http://stackoverflow.com/questions/217578/point-in-polygon-aka-hit-test. For finding shapes around the point, you can simply find all shapes which points or origin are within a specific distance from your point – rro Dec 07 '12 at 07:12

0 Answers0