create

@NonNull
open fun create(@NonNull res: @NonNull Resources, @Nullable bitmap: @Nullable Bitmap): @NonNull RoundedBitmapDrawable(source)

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 filepath: @NonNull String): @NonNull RoundedBitmapDrawable(source)

Returns a new drawable, creating it by opening a given file path and decoding the bitmap.


@NonNull
open fun create(@NonNull res: @NonNull Resources, @NonNull is: @NonNull InputStream): @NonNull RoundedBitmapDrawable(source)

Returns a new drawable, creating it by decoding a bitmap from the given input stream.