[Lazarus] LCL High-DPI request for help adding images

Marc Weustink marc at dommelstein.nl
Mon Feb 27 15:12:06 CET 2017



On February 26, 2017 10:11:58 PM GMT+01:00, Ondrej Pokorny via Lazarus <lazarus at lists.lazarus-ide.org> wrote:
>On 26.02.2017 16:33, Vojtěch Čihák via Lazarus wrote:
>>
>> Wouldn't be better (or would it be possible) to have *.svg icons in 
>> resources and generate *.png icons on start of IDE? Now you add 150% 
>> and 200%, later will come 250, 300% as 4k, 5k and 8k monitors come to
>
>> market.
>>
>
>You are welcome to implement such a feature. Low resolution icons
>(16px, 
>24px) have to stay in PNGs due to scaling/aliasing problems. But 4k, 5k
>
>and 8k monitor resolutions can be handled with SVG icons.
>
>I tested AggPas with some SVG icons and the results were not good.
>Icons 
>that I tried couldn't be rendered at all. I am not sure fpvectorial is 
>better. So first we need a good renderer and then we need a bunch of 
>icons. Any help is appreciated. I won't do that.

That was also my experience. At work we use svg images and I wrote my own (limited) the svg parser and render the images with aggpas.
For us this parser is OK, but it lacks a lot of svg features

Marc



More information about the Lazarus mailing list