decode Bitmap
Read bitmap from an imageUri. Accepts URI schemes accepted by ContentResolver.openInputStream:
content (ContentResolver.SCHEME_CONTENT)
android.resource (ContentResolver.SCHEME_ANDROID_RESOURCE)
file (ContentResolver.SCHEME_FILE)
Blocking — call it off the main thread, or use decodeBitmapAsync.
Return
decoded bitmap data.
Parameters
context
The context to use.
image Uri
Uri from which to read the bitmap.
Throws
When file could not be read.