Join Slack
Powered by
Is anyone familiar with how one can extract the <P...
# compose-android
h
Håkon Pettersen
04/24/2024, 1:35 PM
Is anyone familiar with how one can extract the
Palette
from a
Painter
?
✅ 1
a
Alexander Zhirkevich
04/24/2024, 1:38 PM
You need to
convert painter to ImageBitmap
. Then call
asAndroidBitmap()
on it and create palette from the resulted android bitmap
💯 2
h
Håkon Pettersen
04/24/2024, 1:45 PM
That works, thanks!
2
Views
Open in Slack
Previous
Next