Answers for "get bitmap from image android"

2

how to get bitmap from file in android

You should be able to use BitmapFactory:

File mSaveBit; // Your image file
String filePath = mSaveBit.getPath();  
Bitmap bitmap = BitmapFactory.decodeFile(filePath);
mImageView.setImageBitmap(bitmap);
Posted by: Guest on January-07-2021
1

bitmap to image android

val decodedString: ByteArray = Base64.decode(String_URI, Base64.NO_WRAP)
val img = BitmapFactory.decodeByteArray(decodedString, 0, decodedString.size)
Posted by: Guest on August-23-2021

Code answers related to "get bitmap from image android"

Browse Popular Code Answers by Language