User selectable Lines

kevinheeney

Member
Joined
Jun 24, 2003
Messages
20
(VB.NET)

I have for some time been trying to figure out how to create user selectable lines. If anybody could point me in some direction.

I have tried many things such as making lines claim regions of the picturebox but if the user draws a line near that one and tries to click, it does not know which line they are licking.

What I am looking for is simple vector style lines, such as what filemaker uses, Flash or pretty much any application that has lines(except MSPaint).
I want to be able to select a line after drawing it, and then delete it or what not.



KO
 
You could calculate the positions of the pixels that make up the line and follow them, comparing the mouse cursors position to see if its within a set distance from that pixel.
 
Back
Top