Page 1 of 1

Graph Image Quality

Posted: Wed Jun 03, 2009 11:16 am
by 13052775
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

Posted: Wed Jun 03, 2009 2:06 pm
by yeray
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.

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);
        }
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.

Graph Quality

Posted: Mon Jun 08, 2009 1:48 pm
by 13052775
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.

Posted: Tue Jun 09, 2009 3:01 pm
by narcis
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.