public final class RoundedBitmapDrawableFactory
extends Object
java.lang.Object | |
android.support.v4.graphics.drawable.RoundedBitmapDrawableFactory |
构造 RoundedBitmapDrawable
对象,无论是直接从 RoundedBitmapDrawable
还是从流和文件。
公共方法(Public methods) |
|
---|---|
static RoundedBitmapDrawable |
create(Resources res, String filepath) 返回一个新的drawable,通过打开给定的文件路径并解码位图来创建它。 |
static RoundedBitmapDrawable |
create(Resources res, Bitmap bitmap) 通过从位图创建它来返回新的绘图,根据资源的显示度量设置初始目标密度。 |
static RoundedBitmapDrawable |
create(Resources res, InputStream is) 返回一个新的drawable,通过解码来自给定输入流的位图来创建它。 |
继承方法(Inherited methods) |
|
---|---|
![]() java.lang.Object
|
RoundedBitmapDrawable create (Resources res, String filepath)
返回一个新的drawable,通过打开给定的文件路径并解码位图来创建它。
参数(Parameters) | |
---|---|
res |
Resources
|
filepath |
String
|
返回(Returns) | |
---|---|
RoundedBitmapDrawable |
RoundedBitmapDrawable create (Resources res, Bitmap bitmap)
通过从位图创建它来返回新的绘图,根据资源的显示度量设置初始目标密度。
参数(Parameters) | |
---|---|
res |
Resources
|
bitmap |
Bitmap
|
返回(Returns) | |
---|---|
RoundedBitmapDrawable |
RoundedBitmapDrawable create (Resources res, InputStream is)
返回一个新的drawable,通过解码来自给定输入流的位图来创建它。
参数(Parameters) | |
---|---|
res |
Resources
|
is |
InputStream
|
返回(Returns) | |
---|---|
RoundedBitmapDrawable |