Hello. I'm making charts app/lib by drawing everyt...
# compose-desktop
k
Hello. I'm making charts app/lib by drawing everything on
androidx.compose.foundation.Canvas
. Many times I want to extract chart to external picture and I wonder if it possible to export it from canvas, or from any composable function to file in runtime? I want to do it primary on desktop and simple os print screen is not sufficient - charts have incosisstent sizes after manual cropping ;)
k
Copy code
<https://developer.android.com/jetpack/compose/graphics/draw/modifiers#composable-to-bitmap>
k
interesting, this is quite new, thanks a lot