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?
Canvas and drawing gradients
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
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.
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.
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |