The second font export image are bigger than first image
Posted: 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));
}
}
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));
}
}