Closed birbilis closed 2 years ago
btw, in that file
procedure TSVGPaintBox.DrawFile(const AFileName: string);
begin
try
FSvg.LoadFromFile(AFileName);
should write "FSVG.LoadFromFile" for consistency
btw, I tried that demo since it had stretch (aka not keep aspect ratio) option. I don't see TSVGIconImage having such property, nor other way to do more advanced placement (tiling etc.), like the options in https://docwiki.embarcadero.com/Libraries/Sydney/en/FMX.Objects.TImage.WrapMode
update: to answer my own question, since TSVGIconImage descends from TImage (hadn't noticed) one can just do MySVGImg.WrapMode := TImageWrapMode.Stretch; wonder how I hadn't noticed (maybe much older version didn't descent from TImage)
see screenshot from modified SVGViewer demo (just changed True to False)