RoundedBitmapDrawableFactory

Constructs RoundedBitmapDrawable objects, either from Bitmaps directly, or from streams and files.

Functions

Link copied to clipboard
@NonNull
open fun create(@NonNull res: @NonNull Resources, @Nullable bitmap: @Nullable Bitmap): @NonNull RoundedBitmapDrawable
Returns a new drawable by creating it from a bitmap, setting initial target density based on the display metrics of the resources.
@NonNull
open fun create(@NonNull res: @NonNull Resources, @NonNull is: @NonNull InputStream): @NonNull RoundedBitmapDrawable
Returns a new drawable, creating it by decoding a bitmap from the given input stream.
@NonNull
open fun create(@NonNull res: @NonNull Resources, @NonNull filepath: @NonNull String): @NonNull RoundedBitmapDrawable
Returns a new drawable, creating it by opening a given file path and decoding the bitmap.