Exporting a Composable as Bitmap (or png) in Compose Multiplatform
Asked Answered
G

0

7

I have a project where I dynamically generate a tree as a composable which I can edit.

Now I wanted to add a feature, where I can export this tree as a bitmap (another format will likely do the job as well)

I've seen lots of implementations where they use

Bitmap.createBitmap()

from the library android.graphics.Bitmap which takes a view from the composable

But with the standard Compose Multiplatform Library Stack this lib is not there, and I don't feel like installing it for this one thing

Is there another way of doing this?

Guardroom answered 17/6, 2022 at 8:20 Comment(2)
Is the problem still unresolved?Jejunum
See this library.Rheingold

© 2022 - 2024 — McMap. All rights reserved.