我可以使用
val image = +imageResource(R.drawable.header)
并用于DrawImage(image)从 Drawable Resource 加载图像,
但是如何将字符串 url 加载到DrawImage(image)? 中。我试过使用 Glide,但它需要加载到 imageView 中。同时DrawImage(image)不接受来自 imageView 的输入。
谢谢。
android image-processing drawimage kotlin android-jetpack-compose