I need to generate some bitmaps in my app, and cur...
# compose
a
I need to generate some bitmaps in my app, and currently I use plain Bitmap and Canvas for this task. Would be cool if I could use Compose to layout things, and just render it on the Bitmap instead of the screen. Is there any way to do this?
s
Do a search in this channel, I am fairly certain I’ve seen people discuss things like taking a composable and turning it into an image before. And if you find smth, maybe link it back here so that others can see it too.
n
We landed a change to support retargeting of DrawScope canvases that will be available in the next release (after 1.5)
s
Ohh interesting, do you have a link to the merge or something like that? I haven't seen anything in the docs myself yet.
s
This link looks like it's behind some sort of google corp login form
n
I updated the link hopefully this is visible?
s
Yes, that's perfect! Thanks a lot, and looking forward to trying this out!
a
Thanks, looks promising! I couldn't find other solutions apart from https://github.com/PatilShreyas/Capturable, which is cool, but kinda hacky, heavy, and does not cover all cases. So I guess for now I'm looking forward to 1.5!