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

Bad rendering on FMX project with DPI 125 #271

Open gdacunto opened 7 months ago

gdacunto commented 7 months ago

Hi, a TSvgIconImage on Delphi 12 FMX (using Angus engine) doesn't render properly with DPI set to 125%. See the attached screens.

Thanks

100 125 banner-default

gdacunto commented 7 months ago

I've noticed that the issue is also visible in the FMX Ide design editor if the screen is set to 125%.

carloBarazzetta commented 7 months ago

Do you have the same problem in "runtime"?

gdacunto commented 7 months ago

Yes, the two screens in the first message are at runtime. Now I'm trying to play with TsvgIconImage.BitmapZoom value but I don't know if this is the right approach. Removing the checks that avoid to set a zoom >= 100, in case of DPI 125, setting the BitmapZoom at 125 make the svg show fine at runtime. I've also noticed that setting "DisableInterpolation" to False resolve the issue at Design Editor but not at runtime.

gdacunto commented 6 months ago

Hi! Do you have any news about it?

Thanks

carloBarazzetta commented 6 months ago

Sorry but at the moment I don't have much time to solve the problem...