【发布时间】:2018-01-31 20:10:18
【问题描述】:
我在使用位图从 imageview 中获取图像时遇到问题...使用位图通过其 ID 获取图像的代码是:(my picture name = test_image)(my imageview = imageView)
Bitmap image;
...
image = BitmapFactory.decodeResource(getResources(), R. drawable.test_image);
但我希望它在 imageview 中获取图像。不指定图像名称。
由于我想将图像上传到imageview并处理imageview中的图像。
【问题讨论】:
标签: android