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

Cannot compile with Delphi_SVGEngine enabled #211

Closed zedalaye closed 2 years ago

zedalaye commented 2 years ago

I would like to compile the packages with Delphi 11 using TSVG renderer (the one which uses GDI+ ?) by enabling the Delphi_SVGEngine define in SVGIconImageList.inc

SVGIconUtils.pas do not compile because the implementation of MakeTransparent() is missing :

{$IFDEF IgnoreAntiAliasedColor}
procedure MakeTransparent(DC: THandle);
{$ENDIF}
carloBarazzetta commented 2 years ago

Hy @zedalaye, TSVG is an older renderer not maintaned, written in native Delphi, but also Img32 renderer is written in native Delphi and actually is the best engine: https://github.com/EtheaDev/SVGIconImageList/wiki/Choice-of-Factories TSVG is included only for backward compatibility... If you have problems of rendering some svg with Img32 open a specific issue. Thanks. If you want to try to use TSVG, simply remove call to MakeTransparent(DC: THandle);