Android studio 如何在Android中将位图转换为图像

Android studio 如何在Android中将位图转换为图像,android-studio,android-bitmap,Android Studio,Android Bitmap,我对android编程比较陌生,有一个问题:我想把位图转换成图像 我找不到这样做的方法。也许我找错了 谢谢。Drawable imageDrawable=新的BitmapDrawable(getResources(),bitmapImg) Drawable imageDrawable=新的BitmapDrawable(getResources(),bitmapImg) 这样试试 Drawable drawable = RoundedBitmapDrawableFactory.create(con

我对android编程比较陌生,有一个问题:我想把位图转换成图像

我找不到这样做的方法。也许我找错了


谢谢。

Drawable imageDrawable=新的BitmapDrawable(getResources(),bitmapImg)

Drawable imageDrawable=新的BitmapDrawable(getResources(),bitmapImg)

这样试试

Drawable drawable = RoundedBitmapDrawableFactory.create(context.getResources(), bitmap);

     //set imageview XML - call your image view
    imageView.setImageDrawable(drawable);
参考资料:Android开发者/

试试这种方法

Drawable drawable = RoundedBitmapDrawableFactory.create(context.getResources(), bitmap);

     //set imageview XML - call your image view
    imageView.setImageDrawable(drawable);

参考:Android开发者/

是否将图像保存在存储器中?是否将图像保存在存储器中?