I'm trying to upgrade an app from TChart .NET Version 2 to the newest build of Version 3.
In Version 2, I was using some methods in the Graphics3D for drawing lines and rectangles. I think they were DrawLine and DrawRectangle. Those seem to be gone in version 3. So, I'm using the Line and Rectangle methods instead.
When I use the Rectangle method, though, it puts a black line around the rectangle, and I can't seem to get rid of it. Am I using the wrong method, is there a reason that the original methods are now gone?
Thanks!
Drawing in TChart 3
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi TMac,
They are not there as they are "native" GDI+ members which can be accessed through g.Graphics.DrawRectangle, for example
or in the AfterDraw event:
To hide rectangle's pen you can do this:
or this:
Hope this helps!
They are not there as they are "native" GDI+ members which can be accessed through g.Graphics.DrawRectangle, for example
Code: Select all
((Graphics)tChart1.Graphics3D).DrawLine(...)
Code: Select all
((Graphics)g).DrawLine(...)
Code: Select all
tChart1.Graphics3D.Pen.Visible = false;
Code: Select all
g.Pen.Visible = false;
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 |