Is there a way to make a blur `Surface` (foregroun...
# compose
k
Is there a way to make a blur
Surface
(foreground) or
Image
(itself)?
r
Not directly. You can use Renderscript to blur a Bitmap
As for a Surface it depends on how you render into it
k
Well, I have implemented the blur Image, but how can I create the blur Surface? I want to blur the composables beneath the Surface.
r
Ah you can't do this without taking a screenshot or first drawing your composable to a Bitmap that then you blur
k
How to draw composable to Bitmap? 🤔
l
I think you can put the Composable in a ViewGroup/View that you draw on a canvas from a bitmap.