Forum > LCL
TImageList: redraw image at run time from svg files
(1/1)
Lulu:
Hi all,
after read this post https://forum.lazarus.freepascal.org/index.php/topic,64364.0.html about TImageList and multiple resolutions, I share the code I use to redraw at run time the images from svg files. With svg, we have almost the same precision whatever the size.
It use BGRABitmap to load and render the svg files.
I don't have a high res monitor (with DPI>96), I'm not sure this code is DPI aware. Does someone can check this please ?
Thanks
lainz:
Hi. You can change the dpi of your monitor in windows 7 or newer.
No need for a high dpi monitor with 125% will be enough to test.
Notice that we have svg image list in bgracontrols that can be plugged in into a normal image list to populate the bitmaps.
Lulu:
--- Quote from: lainz on August 26, 2023, 03:44:32 am ---Hi. You can change the dpi of your monitor in windows 7 or newer.
No need for a high dpi monitor with 125% will be enough to test.
--- End quote ---
Thank you Lainz for the information, I never used this before.
Restarting the test program (from its binary, not from the IDE to avoid a new compilation with the new DPI) after playing with 125% and 150% it seems to be ok, the icons are not blurred. Yeah !
--- Quote from: lainz on August 26, 2023, 03:44:32 am ---Notice that we have svg image list in bgracontrols that can be plugged in into a normal image list to populate the bitmaps.
--- End quote ---
BGRAControls looks good :)
Navigation
[0] Message Index