Hi, I would like to know if there is an api in cur...
# compose
c
Hi, I would like to know if there is an api in current compose that can capture the current composable as a bitmap 🤨? I need to capture the content of the widget separately to present some effects.I have seen that compose is rendered by a LayoutNode tree, so can we get a node content publicly? Although this is a bit against the principles of declarative programming... but it does require
đź‘€ 1
z
You can probably just ask the hosting view to render to a bitmap.
c
@Zach Klippenstein (he/him) [MOD] Do you mean ComposeView, it doesn't seem to work. Suppose the part I need to capture is translucent, and there is an overlapping part behind it. At this time, they will all be captured together. This is not what I want.
âž• 1
z
Ah yea, that wouldn’t work
c
I created an issue, if someone has the same needs, you can also star