Page 1 of 1

The second font export image are bigger than first image

Posted: Thu Dec 15, 2005 2:01 pm
by 9638860
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));
}
}

Posted: Thu Dec 15, 2005 3:39 pm
by narcis
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.