Page 1 of 1

Draw Polygon

Posted: Thu May 14, 2009 1:10 pm
by 10047047
Hi,

I am working on a 2D image processing project and want to draw a region of interest on the colorgrid image for analysis. I found that TDrawLineTool is very powerful for plotting and moving a line, rectangle and ellipse. Is there a similar function/tool for plotting and changing a polygon on the colorgrid series?

Thanks

Xia

Posted: Thu May 14, 2009 2:06 pm
by yeray
Hi Xia,

I'm afraid there is no DrawPolygon tool so you should draw your custom polygon. Take a look at this thread where a customer asked for something that may be similar than what you are looking for.

Another possibility could be using a Line series with pointers visible. You could add points with OnMouseDown event and add a final point with the same position as the first point when the user finishes to draw the polygon in order to close the polygon. Also note that DragPoint tool would be useful in this solution.