RoundedBitmapDrawableFactory

Added in 1.1.0

class RoundedBitmapDrawableFactory


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

Summary

Public functions

java-static RoundedBitmapDrawable
create(res: Resources, bitmap: Bitmap?)

Returns a new drawable by creating it from a bitmap, setting initial target density based on the display metrics of the resources.

java-static RoundedBitmapDrawable
create(res: Resources, filepath: String)

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

java-static RoundedBitmapDrawable

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

Public functions

create

Added in 1.1.0
java-static fun create(res: Resources, bitmap: Bitmap?): RoundedBitmapDrawable

Returns a new drawable by creating it from a bitmap, setting initial target density based on the display metrics of the resources.

create

Added in 1.1.0
java-static fun create(res: Resources, filepath: String): RoundedBitmapDrawable

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

create

Added in 1.1.0
java-static fun create(res: Resources, is: InputStream): RoundedBitmapDrawable

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