EtheaDev / SVGIconImageList

Three engines to render SVG (Delphi Image32, Skia4Delphi, Direct2D wrapper) and four components to simplify use of SVG images (resize, fixedcolor, grayscale...)
Apache License 2.0
321 stars 93 forks source link

Getting size from SVG #210

Closed birbilis closed 2 years ago

birbilis commented 2 years ago

Does SVGIconImage support AutoSizing from any sizing information in the SVG file? Or does it expose some way to query for the SVG size without parsing the SVGText property content?

carloBarazzetta commented 2 years ago

Actually no, because the various engines uses this information internally to draw an image of a requested size on a canvas: you can look at TSVG o Image32 native Delphi engines to see how the extract those information from the SVG Text.