https://kotlinlang.org logo
#compose
Title
# compose
k

Kulwinder Singh

06/06/2021, 3:06 PM
Hi, is there any api available to select Vibrant or any other color from Image loaded using Coil ? or i have to use existing palette api ?
k

Kulwinder Singh

06/06/2021, 3:25 PM
Great, Thanks @Zun
But in this way how can i avoid loading image twice(one is
rememberCoilPainter
and 2nd is to get color palette) ?
z

Zun

06/06/2021, 6:15 PM
I am searching for the same thing. As far as I can tell, Coil will load from cache if the image is already loaded
c

cb

06/07/2021, 9:05 AM
Yes exactly. It's much better to let Coil load a small image for Palette to use, than try and pass the large displayed bitmap around just for Palette to resize it anyway.
k

Kulwinder Singh

06/08/2021, 6:21 AM
Looks Good, Thanks @cb and @Zun
2 Views