public final class RoundedBitmapDrawableFactory extends Object
RoundedBitmapDrawable
objects,
either from Bitmaps directly, or from streams and files.Modifier and Type | Method and Description |
---|---|
static RoundedBitmapDrawable |
create(Resources res,
Bitmap bitmap)
Returns a new drawable by creating it from a bitmap, setting initial target density based on
the display metrics of the resources.
|
static RoundedBitmapDrawable |
create(Resources res,
InputStream is)
Returns a new drawable, creating it by decoding a bitmap from the given input stream.
|
static RoundedBitmapDrawable |
create(Resources res,
String filepath)
Returns a new drawable, creating it by opening a given file path and decoding the bitmap.
|
public static RoundedBitmapDrawable create(Resources res, Bitmap bitmap)
public static RoundedBitmapDrawable create(Resources res, String filepath)
public static RoundedBitmapDrawable create(Resources res, InputStream is)