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));
}
}
The second font export image are bigger than first image
-
- Newbie
- Posts: 7
- Joined: Wed Oct 19, 2005 4:00 am
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
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.
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 |
Instructions - How to post in this forum |