Draw Polygon

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
Xia
Newbie
Newbie
Posts: 47
Joined: Tue Oct 16, 2007 12:00 am

Draw Polygon

Post by Xia » Thu May 14, 2009 1:10 pm

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

Yeray
Site Admin
Site Admin
Posts: 9612
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Post by Yeray » Thu May 14, 2009 2:06 pm

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.
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Post Reply