Hi
We are exporting Image of TeeChart graphs using following statements.
chtBase.Graphics3D.UseBuffer = false;// if dont use this, GDI+ objects get flooded with Memeory.
return chtBase.Chart.Bitmap(400, 225, System.Drawing.Imaging.PixelFormat.Format32bppArgb);
The image quality is not good, Please see attachment.
Note we can not change the size of image, as we have some memory constraints.
Earlier we were using NI charts, in which we were getting good quality of Image. When we migrated to TeeChart we are facing issues with Graph Quality vs Performance.
We are using TeeChart version 3.5..21113
Graph Image Quality
Hi Vivek,
The image "Graph on Report.JPG" that you've sent is 723x450, not 400x225 as in your code.
On the other hand, using this code, the resulting image looks really better than yours. So maybe there is any important step I've missed to reproduce the problem.
Please, could you send us a simple example project we can run "as-is" to reproduce the problem here?
You can either post your files at news://www.steema.net/steema.public.attachments newsgroup or at our upload page.
The image "Graph on Report.JPG" that you've sent is 723x450, not 400x225 as in your code.
On the other hand, using this code, the resulting image looks really better than yours. So maybe there is any important step I've missed to reproduce the problem.
Code: Select all
private void InitializeChart()
{
tChart1.Aspect.View3D = false;
tChart1.Legend.Visible = false;
Steema.TeeChart.Styles.Points points1;
points1 = new Steema.TeeChart.Styles.Points();
tChart1.Series.Add(points1);
points1.FillSampleValues(20);
}
private void button1_Click(object sender, EventArgs e)
{
//tChart1.Graphics3D.UseBuffer = false;// if dont use this, GDI+ objects get flooded with Memeory.
Bitmap bmp1 = tChart1.Chart.Bitmap(400, 225, System.Drawing.Imaging.PixelFormat.Format32bppArgb);
bmp1.Save(@"C:\bitmap1.jpg", System.Drawing.Imaging.ImageFormat.Jpeg);
}
You can either post your files at news://www.steema.net/steema.public.attachments newsgroup or at our upload page.
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |
Graph Quality
We have changed jpeg to png, to avoid high useages of memory. But its observerd that some time image background is pink. is there any way to avoid this.
See newly added attachment for this.
See newly added attachment for this.
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Vivek,
First of all please notice there are newer versions of TeeChart for .NET v3 available at the client area. Can you please check if they solve your problems?
If they don't, can you please send us a simple example project we can run "as-is" so that we can reproduce reported behaviour here?
Thanks in advance.
First of all please notice there are newer versions of TeeChart for .NET v3 available at the client area. Can you please check if they solve your problems?
If they don't, can you please send us a simple example project we can run "as-is" so that we can reproduce reported behaviour here?
Thanks in advance.
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 |