Hi. I should note that I started to notice a growing number of questions about how to turn Compose widget into a bitmap(in the manner
View#drawingCache
we had with legacy
View
system). And I didn't understand why, until now.
Now I am going to raise this issue too. ๐
What I'm interested in:
(see attached images ๐งต)
The question:
Is it possible to capture the underlying layers behind the widget in order to manipulate the pixels later?
Note:
It is not always possible to wrap every set of composable widgets in an AndroidView and use the rendering cache in the "old" way.
Is it planned to provide such functionallity with future versions of Compose(
1.1
,
1.2
,...)?
And is it technically possible at all with Compose?
Thanks.
โ 1
Sergey Y.
07/22/2021, 8:33 PM
Sergey Y.
07/22/2021, 8:38 PM
examples with blur just to illustrate, there are other use cases
Sergey Y.
07/22/2021, 8:43 PM
...and yes, I read similar questions and solutions(or lack thereof) before writing this post.
Rather, it serves to attract attention and demonstrate meaningful interest in an issue, to fill in the information space, in other words.