Page 1 of 1

Canvas and drawing gradients

Posted: Mon May 14, 2007 8:40 pm
by 9531332
Is it possible to use the ICanvas properties and methods to draw gradient filled rectangles?

Or do I need to use ICanvas::HandleDC() and GDI+ to do it?

Posted: Tue May 15, 2007 9:50 am
by narcis
Hi thatnerdyguy,

Yes, this is possible and you would need to use TeeChart's Canvas using m_Chart1.GetCanvas() as told in Tutorial 13 - Custom drawing on the Chart Panel.

However, to achieve what you request, I think that would be much easier using annotation or rectangle tools instead of custom drawing on TeeChart's canvas. Those tools already support gradient fill.