By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
428,630 Members | 1,010 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 428,630 IT Pros & Developers. It's quick & easy.

define the points enclosed within a polygon

P: n/a
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

--
Message posted via http://www.dotnetmonster.com
Nov 17 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Hi,

The message is clear but what is not clear is the question, are you asking
how to draw it? If so you can use GDI+ functions to draw the lines based on
an array of points.

I have done an application before that when the mouse move was forcing a
repaint with the last point based on the mouse hotspot so you can easily draw
irregular shapes.

GDI+ functions are stored on the System.Drawing namespace.

Hope this helps
Salva
"G. Daniel via DotNetMonster.com" wrote:
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

--
Message posted via http://www.dotnetmonster.com

Nov 17 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.