decodeBitmap

open fun decodeBitmap(@NonNull context: Context, @NonNull imageUri: Uri): Bitmap

Read bitmap from an imageUri. Accepts URI schemes accepted by openInputStream:

Return

decoded bitmap data.

Parameters

context

The context to use.

imageUri

Uri from which to read the bitmap.

Throws

When file could not be read.