Android APIs
public class

RoundedBitmapDrawableFactory

extends Object
java.lang.Object
   ↳ android.support.v4.graphics.drawable.RoundedBitmapDrawableFactory

Class Overview

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

Summary

Public Constructors
RoundedBitmapDrawableFactory()
Public Methods
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.
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.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public RoundedBitmapDrawableFactory ()

Public Methods

public static RoundedBitmapDrawable create (Resources res, InputStream is)

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

public 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)

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