Home » U++ Library support » Draw, Display, Images, Bitmaps, Icons » What is the best way to handle scaling icons?
What is the best way to handle scaling icons? [message #50155] |
Thu, 09 August 2018 15:34 |
cbpporter
Messages: 1401 Registered: September 2007
|
Ultimate Contributor |
|
|
I've been having a lot of troubles with scaling under Windows. I went though the entire GUI to touch it up, testing under 125%, 150%, 175% and 200% scaling. Updated CodeEditor too to properly scale and be aesthetically pleasing.
The one problem is icons. What is the best way to handle this?
As far as I can tell, icons get scaled too, but they look jagged with some filtering smoothing.
Potential solutions:
1. Have multiple icon sizes? 16, 24, 32? Does U++ support multi-res icons or should I do this in code?
2. Use SVG icons? One could do on applications startup some size detection and render SVG icons into some sort of Image?
One problem with this is that RenderSVGImage from Painter package renders a background. I cleared the background and so far it looks like it is working properly. I'll have to render that image onto a bunch of GUI elements to see if transparency and sub pixel rendering is looking good.
Maybe RenderSVGImage should take the background clear color as a parameter?
|
|
|
|
Goto Forum:
Current Time: Sat May 04 14:56:01 CEST 2024
Total time taken to generate the page: 0.02599 seconds
|