BitmapUtils

open class BitmapUtils

Extension to android.graphics.BitmapFactory that allows decoding bitmaps from content provider Uris.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
open fun decodeBitmap(@NonNull context: Context, @NonNull imageUri: Uri): Bitmap
Read bitmap from an imageUri.
Link copied to clipboard
open fun decodeBitmapAsync(@NonNull context: Context, @NonNull imageUri: Uri): Single<Bitmap>
Decode bitmap from an imageUri asynchronously.
Link copied to clipboard
open fun fromDrawable(context: Context, drawableResource: Int): Bitmap
Generate a bitmap from an drawableResource XML drawable