RoundedBitmapDrawableFactory
public
final
class
RoundedBitmapDrawableFactory
extends Object
java.lang.Object
|
↳ |
androidx.core.graphics.drawable.RoundedBitmapDrawableFactory
|
Constructs RoundedBitmapDrawable
objects,
either from Bitmaps directly, or from streams and files.
Summary
Inherited methods |
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
final
void
|
wait()
|
|
Public methods
create
public static RoundedBitmapDrawable create (Resources res,
String filepath)
Returns a new drawable, creating it by opening a given file path and decoding the bitmap.
Parameters |
res |
Resources |
filepath |
String |
create
public 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.
Parameters |
res |
Resources |
bitmap |
Bitmap |
create
public static RoundedBitmapDrawable create (Resources res,
InputStream is)
Returns a new drawable, creating it by decoding a bitmap from the given input stream.
Parameters |
res |
Resources |
is |
InputStream |