https://github.com/patilshreyas/compose-capture2bitmap-issue
Reproducing issue in Jetpack Compose while capturing Bitmap content from a Composable
https://github.com/patilshreyas/compose-capture2bitmap-issue
Last synced: 4 months ago
JSON representation
Reproducing issue in Jetpack Compose while capturing Bitmap content from a Composable
- Host: GitHub
- URL: https://github.com/patilshreyas/compose-capture2bitmap-issue
- Owner: PatilShreyas
- Created: 2023-10-15T15:30:24.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-02-25T08:41:39.000Z (over 1 year ago)
- Last Synced: 2025-01-22T19:48:10.702Z (9 months ago)
- Language: Kotlin
- Homepage: https://issuetracker.google.com/issues/305653364
- Size: 102 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Jetpack Compose's @Composable content to Bitmap conversion issue Demo
A sample to demonstrate issues observed around the guide for ["Write contents of a composable to a bitmap"](https://developer.android.com/jetpack/compose/graphics/draw/modifiers#composable-to-bitmap)
when the network image _(like `AsyncImage` from Coil-kt)_ is used.Issue: https://issuetracker.google.com/issues/305653364
## Issues
### Issue 1
In this issue, content is not getting drawn on the UI initially when a Modifier for capturing the content of composable to bitmap is used.
But, content gets drawn on a UI when the `Picture` is converted to a `Bitmap`.https://github.com/PatilShreyas/compose-capture2bitmap-issue/assets/19620536/875c2ff2-7719-4ad3-a803-ce77efd8c544
### Issue 2
Like the above issue, content is not getting drawn on the UI initially but starts getting rendered when app is paused and resumed again.
https://github.com/PatilShreyas/compose-capture2bitmap-issue/assets/19620536/0017ffe2-c4fd-40f3-864c-fed7139eb320