compose-multiplatform icon indicating copy to clipboard operation
compose-multiplatform copied to clipboard

Add LocalView-like value to enable composable2bitmap operation

Open 6xingyv opened this issue 3 years ago • 9 comments

6xingyv avatar Jan 14 '23 08:01 6xingyv

You'd better provide such a request to Google androidx

pjBooms avatar Jan 16 '23 11:01 pjBooms

Oops...It's my fault of not describing this feature-request. In this projectvisual-effects, the author made the background blur effect using LocalView.current, but compose-jb haven't any similar value that can replace it....

6xingyv avatar Jan 16 '23 15:01 6xingyv

You'd better provide such a request to Google androidx

So could you reopen this issue? Thanks

6xingyv avatar Jan 16 '23 15:01 6xingyv

LocalView is Android specific, right

pjBooms avatar Jan 16 '23 19:01 pjBooms

In compose-jb, there's no such concept. The entire Window is one big Skia-backed canvas.

kirill-grouchnikov avatar Jan 16 '23 19:01 kirill-grouchnikov

In compose-jb, there's no such concept. The entire Window is one big Skia-backed canvas.

so...is there any way to nest another skia-based canvas to place composable and enable such operation?

6xingyv avatar Jan 17 '23 01:01 6xingyv

You can already apply shaders on individual nodes in your hierarchy

kirill-grouchnikov avatar Jan 17 '23 01:01 kirill-grouchnikov

See https://www.pushing-pixels.org/2022/04/09/shader-based-render-effects-in-compose-desktop-with-skia.html

kirill-grouchnikov avatar Jan 17 '23 01:01 kirill-grouchnikov

See https://www.pushing-pixels.org/2022/04/09/shader-based-render-effects-in-compose-desktop-with-skia.html

Does not work with bitmaps images in the background Also need to manually set the size

Nourepide avatar Mar 30 '23 05:03 Nourepide