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

Wrong color on Android #260

Closed kameisan closed 1 year ago

kameisan commented 1 year ago

SVGIconImageList with Image32 on Android displays svg image well, but wrong color . ( I know it not support Android currently, but ... )

carloBarazzetta commented 1 year ago

Oh no... Here a very long discussion on this problem: https://github.com/EtheaDev/SVGIconImageList/issues/229 I've no control over Image32 rendering on Android: yesterday I've aligned my Image32 source code to the same source code of Angus, so I don't know how to fix this problem: are you using the lastet versione of my library?

kameisan commented 1 year ago

I downloaded v4.1.0 and rebuilt my app, but the problem did not improve. so, I changed following line in FMX.Image32SVG.pas: (before) LSource := TBitMapData.Create(FImage32.Width, FImage32.Height, TPixelFormat.BGRA); (after) LSource := TBitMapData.Create(FImage32.Width, FImage32.Height, TPixelFormat.{$IF Defined(ANDROID)RGBA{$ELSE}BGRA{$ENDIF}); It's looks like the problem fixed.

thank you.