Using TChart.Draw() with teechart.pocket

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
Michael L
Newbie
Newbie
Posts: 4
Joined: Mon Mar 08, 2010 12:00 am

Using TChart.Draw() with teechart.pocket

Post by Michael L » Fri Mar 19, 2010 1:42 am

Hi,

I'm trying to use TChart.Draw() with TeeChart.Pocket with I think the latest version of TeeChart .NET 2009, but seem to only be able to use the Draw(graphics) overload. The reason I wish to use Draw(void) is that I want to avoid drawing the chart to screen twice each time I update it. I am using parameters like Chart.Height, Chart.Width, Axis.StartPos, Axis.EndPos to perform 3D isotropic scaling, which works fine except for the double redraw.

I understand that Draw() will internally draw the chart thereby initialising all of these variables, but it does not appear to be accessible. Is there a way to use Draw(void), or another way of doing this?

As a related question, can you define for me what IStartPos and IEndPos actually are? They aren't documented in the help file and I've kind of had to guess what they do to get the isotropic algorithm to work just right.

Thanks,

Michael L

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

Re: Using TChart.Draw() with teechart.pocket

Post by Narcís » Fri Mar 19, 2010 3:43 pm

Hi Michael,
I understand that Draw() will internally draw the chart thereby initialising all of these variables, but it does not appear to be accessible. Is there a way to use Draw(void), or another way of doing this?
Try using Bitmap method instead:

Code: Select all

			Bitmap bmp = tChart1.Bitmap;
As a related question, can you define for me what IStartPos and IEndPos actually are? They aren't documented in the help file and I've kind of had to guess what they do to get the isotropic algorithm to work just right.
Yes, Yeray described those properties here.
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