Is there a TSVGImageList-type implementation? lazarus / 39-Graphics ---------------------------------------------------------------------- dsiders · 2020-02-13 18:27 After poking about a bit, I still haven't found what I'm looking for (with apologies to U2). It seems that all the TImageList gyrations could be avoided if source data for images were in SVG format. Getting a particular resolution would be a matter of rendering the SVG data with the correct ViewBox dimensions. I looked at BGRA, but did not see an ImageList equivalent. Is anyone aware of such a beast, or have I found my next personal project that I really don't have time for? ---------------------------------------------------------------------- winni · 2020-02-13 20:23 Hi! The BGRA Controls include a BGRA ImageList but - sorry - it contains a long list of image formats, but no vector format. Yes, that has to be written on someones ToDo list! Winni ---------------------------------------------------------------------- circular · 2020-02-15 00:30 Hmm in fact that may not be too much work as SVG is supported by BGRABitmap so making an image list based on that is doable. In fact, I am thinking that LZP format could be used as well. So that would be a TBGRAVectorialImageList or something. ---------------------------------------------------------------------- winni · 2020-02-15 00:52 Hi! That would be cool! And all the trouble which is now around with the multi-resolution ImageList would vanish. @circular: I did not think about you when I talked about the ToDo list. @dsiders talked about his ToDo list !! Winni ---------------------------------------------------------------------- dsiders · 2020-02-15 00:53 Quote from: circular on February 15, 2020, 01:30:00 amHmm in fact that may not be too much work... Those are famous last words.... Quote from: circular on February 15, 2020, 01:30:00 am...as SVG is supported by BGRABitmap so making an image list based on that is doable. In fact, I am thinking that LZP format could be used as well. So that would be a TBGRAVectorialImageList or something. I was aware of the SVG support, that's why I looked at BGRA first. .SVGZ seems to use gzip/deflate. I'm not aware of LZP, I'll have to look it up. I'd just call it TBGRASvgImageList unless its native format is something other than SVG. ---------------------------------------------------------------------- circular · 2020-02-15 02:55 Quote from: dsiders on February 15, 2020, 01:53:59 amQuote from: circular on February 15, 2020, 01:30:00 amHmm in fact that may not be too much work... Those are famous last words.... Haha indeed. QuoteI was aware of the SVG support, that's why I looked at BGRA first. .SVGZ seems to use gzip/deflate. I'm not aware of LZP, I'll have to look it up. I'd just call it TBGRASvgImageList unless its native format is something other than SVG. LZP is LazPaint format. It supports now vectorial and I've started to use that in LazPaint for toolbars. For now I am populating a regular image list with the rendered images from LZP files. Having an vectorial image list that can take SVG, LZP and raster images would be ideal. So that it would be possible to replace progressively raster images and use features of LZP as well as SVG.  If you store each image source in a stream, you can detect its format and handle it accordingly. I would love such component.