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
Fuzzy graphics with high DPI
Moderator: Queue Moderators
Re: Fuzzy graphics with high DPI
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.
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
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
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
- blakeadkins
- Posts: 44
- Joined: Tue Feb 25, 2014 7:49 pm
Re: Fuzzy graphics with high DPI
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.
The fuzziness is really noticeable on tablet devices with high DPI; graph is fuzzy and text gets cut off.
- ArctionPasi
- Posts: 1367
- Joined: Tue Mar 26, 2013 10:57 pm
- Location: Finland
- Contact:
Re: Fuzzy graphics with high DPI
We will revisit this issue in v.7, we have a new rendering engine under construction.
LightningChart Support Team, PT
Re: Fuzzy graphics with high DPI
Any word if this will be fixed in V7?
- ArctionPasi
- Posts: 1367
- Joined: Tue Mar 26, 2013 10:57 pm
- Location: Finland
- Contact:
Re: Fuzzy graphics with high DPI
This is taking place in programming queue next week and will be included in v.7.
LightningChart Support Team, PT