define the points enclosed within a polygon

  • Thread starter Thread starter G.A.Mashaqbeh via DotNetMonster.com
  • Start date Start date
G

G.A.Mashaqbeh via DotNetMonster.com

can anybody help me??
using the mouse i let the user to draw a shape about a set of points, i
want to define the points enclosed within this shape, the shape is
irregular, i have saved all the points of that shape (which are defined by
the mousedown event), the shape is not completely continous (due to moving
the mouse very fast) but it is closed.

if any body have any idea even if it is not completly correct, please
support it, it may help me alot

thanx
 
Are you looking for all of the points? this could mean a scanline
conversion....

Do you want the region within the outer drawn edge? This is easier.

Please be more specific.

--
Bob Powell [MVP]
Visual C#, System.Drawing

Find great Windows Forms articles in Windows Forms Tips and Tricks
http://www.bobpowell.net/tipstricks.htm

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/faqmain.htm

All new articles provide code in C# and VB.NET.
Subscribe to the RSS feeds provided and never miss a new article.
 
Back
Top