Canvas and drawing gradients

TeeChart for ActiveX, COM and ASP
Post Reply
thatnerdyguy
Newbie
Newbie
Posts: 14
Joined: Thu May 18, 2006 12:00 am

Canvas and drawing gradients

Post by thatnerdyguy » Mon May 14, 2007 8:40 pm

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?

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Tue May 15, 2007 9:50 am

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.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply