You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Would it be possible to provide a Bitmap or Drawable in addition to Painter when the image is successfully downloaded in Android target similar to Coil-Compose?
Coil:
DisposableEffect(url) {
val request = ImageRequest.Builder(context)
.data(data = url)
.target { drawable ->
val bitmap = drawable.toBitmapOrNull() ?: return@target
// TODO use bitmap
}
.build()
val disposable = ImageLoader.Builder(context)
.components { add(SvgDecoder.Factory()) }
.build()
.enqueue(request)
onDispose {
disposable.dispose()
}
}
The text was updated successfully, but these errors were encountered:
No, I would like to download svg and get a Bitmap or Drawable in addition to Painter as a result. There are still few Compose components (for example Google Maps Markers) that required bitmap instead of Painter and I don't want to use different library for it.
Would it be possible to provide a Bitmap or Drawable in addition to Painter when the image is successfully downloaded in Android target similar to Coil-Compose?
Coil:
The text was updated successfully, but these errors were encountered: