The second font export image are bigger than first image

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
Igor Maystruk
Newbie
Newbie
Posts: 7
Joined: Wed Oct 19, 2005 4:00 am

The second font export image are bigger than first image

Post by Igor Maystruk » Thu Dec 15, 2005 2:01 pm

Hello All,
I am exporting the images and the second, third... images have the font bigger than first image, otherwide, the tchat size is the same but the font and series, labels are bigger than first image. Anyone know about this? How can I resolve this?
The cade is the below.
so Thanks,
Renata


graphics.FillRectangle(new SolidBrush(Color.White),0, 0, FindBiggerWidth(regularSize.Width, ZoomPrint), FindBiggerHeight(regularSize.Height,ZoomPrint));
//Create Plot stream
Stream PlotStream;
for(int i = (this.Controls.Count -1); i > -1; i--){
if(this.Controls is TaoPlotView){
PlotStream = new MemoryStream();
((TaoPlotView)this.Controls).tChart.Export.Image.JPEG.Width= (int)(((TaoPlotView)this.Controls).regularLocationY * ZoomPrint);
((TaoPlotView)this.Controls).tChart.Export.Image.JPEG.Height=(int)(((TaoPlotView)this.Controls).Size.Height *ZoomPrint);

//Draw the tchart in plot stream
((TaoPlotView)this.Controls).tChart.Export.Image.Bitmap.Save(PlotStream);
//Create a image of the plot stream
Image image = Image.FromStream(PlotStream);
//Draw the image in panel graphics
graphics.DrawImage(image, (int)(((TaoPlotView)this.Controls).regularLocationX * ZoomPrint), (int)(((TaoPlotView)this.Controls).regularLocationY * ZoomPrint), (int)(((TaoPlotView)this.Controls).regularWidth * ZoomPrint), (int)(((TaoPlotView)this.Controls).Size.Height *ZoomPrint));
}
}

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

Post by Narcís » Thu Dec 15, 2005 3:39 pm

Hi Renata,

Which TeeChart version are you using? Could you please send us an example we can run "as-is" to reproduce the problem here? You can post your files at [url]news://www.steema.net/steema.public.attachments[/url] newsgroup.
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