Page 1 of 1
Rectangle tool
Posted: Tue Nov 27, 2007 4:38 pm
by 10545848
The rectangle tool is great. Is there a way of drawing a similar shape with more than 4 sides? I need to be able to draw an "n" sided shape and know if a given point in the colorgridseries is inside the shape or outside.
Thnks in advance.
Posted: Tue Nov 27, 2007 6:15 pm
by narcis
Hi dpatch,
You could try using Chart1.Canvas.Cube method.
Posted: Wed Dec 05, 2007 1:13 am
by 10545848
Thank you for your response.
I guess I was not clear about what I was asking. I need to draw a shape, say a hexagon or an octogon...using something similar to the rectangle tool. Maybe I could give 6 points as the shape bounds and it would connect the points, drawing a 6 sided shape.
My application needs to draw bounds (or an outline) around a feature in an image then manipulate the point values inside the shape. What you have done with the rectangle tool is perfect, if I could only add more than 4 sides.
thanks again in advance.
Posted: Wed Dec 05, 2007 11:08 am
by narcis
Hi dpatch,
Thanks for the information.
I'll add your request to our wish-list to be considered for inclusion in future releases. In the meantime, the only way to achieve that I can think of, is using existing TeeChart's Canvas methods for drawing 3D polygons combined with text output methods like TextOut or TextOut3D.
Posted: Wed Dec 05, 2007 2:32 pm
by 10545848
OK, thanks for the consideration. Remember, I am looking fo a 2D shape, not a 3D shape.
In the mean time, I am going to look at the source code for the rectangle tool to see if it can be easily modified.
Thanks again!
Posted: Wed Dec 05, 2007 3:09 pm
by narcis
Hi dpatch,
Ok, in that case you may be also interested in the polygon drawing methods included in TeeChart's Canvas.