Best Approach for Scaling - HD vs 4K Resolution
Posted: 21 May 2019, 22:35
I'm looking to improve how layout and scaling works at normal and high DPI. I have noticed a few things:
* Images not displayed at their native resolution can appear either blurry (if upscaled) or grainy (if downscaled).
* Screen resolution has a significant impact on UI scale.
I looked into ViewBox and I am comfortable using it but I wanted to ask... what is really the best way to go about doing this? I hope you do not mind that I have a few questions I'd like share.
1) Should I try to have one viewbox at the root of the visual tree -- and have this perform scaling with proportionality in mind? Or is it more likely that I'll need multiple view boxes on a per control basis?
2) Should I convert UI window chrome into vector art?
3) So let's say I my normal DPI icon image is 128x128 pixels. Should I create a 512x512 pixel version and use it when 4K? Which raises the next question ...
4) Do I try to have two modes -- just normal DPI and High DPI and let layout management do the rest?
As you can imagine, I don't really have a great grasp of how to best tackle this. In UWP, there was a global scaling factor that tended to make things look the same, more or less. It did not resolve, however image distortion.
Example UI, Full HD:

Example UI 4K:

* Images not displayed at their native resolution can appear either blurry (if upscaled) or grainy (if downscaled).
* Screen resolution has a significant impact on UI scale.
I looked into ViewBox and I am comfortable using it but I wanted to ask... what is really the best way to go about doing this? I hope you do not mind that I have a few questions I'd like share.
1) Should I try to have one viewbox at the root of the visual tree -- and have this perform scaling with proportionality in mind? Or is it more likely that I'll need multiple view boxes on a per control basis?
2) Should I convert UI window chrome into vector art?
3) So let's say I my normal DPI icon image is 128x128 pixels. Should I create a 512x512 pixel version and use it when 4K? Which raises the next question ...
4) Do I try to have two modes -- just normal DPI and High DPI and let layout management do the rest?
As you can imagine, I don't really have a great grasp of how to best tackle this. In UWP, there was a global scaling factor that tended to make things look the same, more or less. It did not resolve, however image distortion.
Example UI, Full HD:

Example UI 4K:
