Page 1 of 1

Fuzzy graphics with high DPI

Posted: Wed Oct 22, 2014 10:00 am
by jrvdboom
If I set my display to 120 DPI it seems that the chart is rendered at 96 DPI and then scaled by 125%. The output gets very fuzzy (for lines, text, etc.) or looks low-res (for 3D objects).

Is there a property I can set to turn of this scaling, so that everything will look nice and crisp again?

Thanks,
Joost

Re: Fuzzy graphics with high DPI

Posted: Wed Oct 22, 2014 11:52 am
by ArctionJari
Chart is rendered with GPU using a fixed size (i.e. the current system DPI that is used with 100% scaling). After this WPF renders the generated image on screen and if you change Windows' scaling, the original image will be up or down-scaled. Up-scaling makes it fuzzy since there is no enough image data to make the original image larger (i.e. interpolation). There is no property to change this behavior since it's built-in.

You could try setting chart's ChartRenderOptions.AntiAliasLevel to 4 and also try if setting chart's container control's UseLayoutRounding property to true or false makes it any crisper.

Re: Fuzzy graphics with high DPI

Posted: Wed Oct 22, 2014 12:38 pm
by jrvdboom
Let me guess: you create a D3D back buffer with LightningChartUltimate.ActualWidth and LightningChartUltimate.ActualHeight for the size. You then render the back buffer on a D3DImage with default DPI settings of 96. That would explain the fuzziness.

ActualWidth and ActualHeight are device independent pixels (DIPs), while the D3D back buffer size is in pixels. In my opinion, you should multiply the size of the back buffer with (actual DPI settings / 96) and set the DPI settings of the D3DImage to the actual DPI of the screen. Then you will always get a nice and crisp image, independent of the PC settings.

Maybe you can add this as a new feature in a future release?

Thanks,
Joost

Re: Fuzzy graphics with high DPI

Posted: Tue Feb 24, 2015 3:58 pm
by blakeadkins
Is there a fix in the future for this issue?

The fuzziness is really noticeable on tablet devices with high DPI; graph is fuzzy and text gets cut off.

Re: Fuzzy graphics with high DPI

Posted: Wed Feb 25, 2015 3:11 pm
by ArctionPasi
We will revisit this issue in v.7, we have a new rendering engine under construction.

Re: Fuzzy graphics with high DPI

Posted: Wed Nov 25, 2015 7:17 pm
by Greg9504
Any word if this will be fixed in V7?

Re: Fuzzy graphics with high DPI

Posted: Thu Nov 26, 2015 5:00 pm
by ArctionPasi
This is taking place in programming queue next week and will be included in v.7.