Graph Image Quality

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
Vivek
Newbie
Newbie
Posts: 9
Joined: Tue Mar 10, 2009 12:00 am
Contact:

Graph Image Quality

Post by Vivek » Wed Jun 03, 2009 11:16 am

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

Yeray
Site Admin
Site Admin
Posts: 9612
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Post by Yeray » Wed Jun 03, 2009 2:06 pm

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.
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Vivek
Newbie
Newbie
Posts: 9
Joined: Tue Mar 10, 2009 12:00 am
Contact:

Graph Quality

Post by Vivek » Mon Jun 08, 2009 1:48 pm

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.

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Tue Jun 09, 2009 3:01 pm

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.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply