TeeChart WPF Pixelization

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
MVUser6
Newbie
Newbie
Posts: 30
Joined: Wed Jul 11, 2012 12:00 am

TeeChart WPF Pixelization

Post by MVUser6 » Tue Aug 21, 2012 7:46 am

Hi,

we are working a lot with the Canvas.
when we export the chart to a bitmap file, we have a little pixelization that we didn't have in the regular .net teechart(with Metafile Format).
after printing it seems more acute - the letters and the numbers are not clear like regular printing and in addition to the pixelization, it's a little bit blurred.

in runtime, it seems a little bit pixelizated also.

i added a sample project that save the teechart to a local bitmap, check the bitmap and see.

1) i saw that the canvas is called GDIPlusCanvas. does it says that it uses the old technology and not a pure WPF canvas? what affects does it have?

2) what can i do to achieve a picture in an higher resolution?

3) what can i do to avoid the pixelization?

in addition, i'm very disappointed that the WPF teechart doesn't support the online editor, it's a really downgrade in the quality of the product.
the printing & the clearance of the letters are very important to our customers(hospitals & critical acute care units).

thanks.
Attachments
TeeChartTestWithElementHost.rar
(22.07 KiB) Downloaded 424 times

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

Re: TeeChart WPF Pixelization

Post by Narcís » Tue Aug 21, 2012 2:15 pm

Hi MVUser6,
i added a sample project that save the teechart to a local bitmap, check the bitmap and see.
Thanks for the project. Is there any specific reason why you are using TeeChart.WPF.dll in a Windows Forms application instead of TeeChart.dll or creating a WPF application?
1) i saw that the canvas is called GDIPlusCanvas. does it says that it uses the old technology and not a pure WPF canvas? what affects does it have?
No, the canvas used in WPF (Steema.TeeChart.WPF.Drawing.Graphics3DWPF) is a System.Windows.Media.DrawingContext. You can check the implementation yourself using any reverse engineering tool with TeeChart.WPF.dll.
2) what can i do to achieve a picture in an higher resolution?
You can try making the image bigger before exporting it:

Code: Select all

          TChartControl.Export.Image.Bitmap.Width = 1000;
          TChartControl.Export.Image.Bitmap.Height = 800;
          TChartControl.Export.Image.Bitmap.Save("c:\\temp\\side.bmp");
and making it smaller after that so you get a better resolution image.

In Windows Forms there's TChart.Graphics3D.SmoothingMode property which might help you as well.
3) what can i do to avoid the pixelization?
What about my suggestions to the previous question?
in addition, i'm very disappointed that the WPF teechart doesn't support the online editor, it's a really downgrade in the quality of the product.
the printing & the clearance of the letters are very important to our customers(hospitals & critical acute care units).
I don't know the exact details behind this decision but, at least, this would mean creating all editors from scratch in WPF. If you are using Windows Forms applications you can always use TeeChart.dll which includes the graphical editors.
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