Measurement Studio for VB6

cancel
Showing results for 
Search instead for 
Did you mean: 

Edge Detection in picture boxes

I am currently trying to load images into the picture box, and free hand selecting areas for statistical analysis. I was wondering if there is a method I could use. Basically, I would draw a shape around the area (almost any shape, except those that cross over on themselves) and I would like to take the data from specifically those points. Any ideas?
0 Kudos
Message 1 of 2
(6,287 Views)
Howdy SteveS -

One way to draw the shape would be to receive user coordinates through a click event, and then use the line method to draw each line in the shape (the line method is the one you would want).  There is a great MSDN article that discusses the method:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbcon98/html/vbconusinggraphicsmethods.asp

To draw arc (or circles), you can use the circle method.  You can find information on that method here:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbcon98/html/vbconusinggraphicsmethods.asp

I hope this helps in your application development!

Andrew W. || Applications Engineer
0 Kudos
Message 2 of 2
(6,261 Views)