I have a basic question about screenshotting composables. AFAIK, there are 2 main ways that one can go about this;
• AndroidView->ComposeView wrapping and draw ComposeView onto a canvas
• PixelCopy and directly read from window
The second method is useless when composable content is bigger than the window. Any overflowing content would be lost.
The first method does not have obvious blockers for getting the job done but I found a small problem. If the composable uses graphicsLayer in any way, it isn't reflected when
composeView.draw(canvas)
is called. All graphicsLayer modifications like
offset
,
scale
,
rotation
are disregarded.
So my question is; is there a way to enable graphicsLayer while drawing a
View
onto a Canvas?