decode Bitmap
Read bitmap from an imageUri
. Accepts URI schemes accepted by openInputStream:
- content (SCHEME_CONTENT)
- android.resource (SCHEME_ANDROID_RESOURCE)
- file (SCHEME_FILE)
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.