List of usage examples for android.graphics.drawable BitmapDrawable BitmapDrawable
private BitmapDrawable(BitmapState state, Resources res)
From source file:Main.java
public static Drawable bitmapToDrawable(Resources resources, Bitmap bm) { Drawable drawable = new BitmapDrawable(resources, bm); return drawable; }
From source file:Main.java
public static Drawable getBitmapToDrawable(Context mContext, Bitmap bitmap) { BitmapDrawable bd = new BitmapDrawable(mContext.getResources(), bitmap); return bd;//from ww w . ja v a 2s . co m }
From source file:Main.java
public static final Drawable toDrawable(Context context, Bitmap b) { BitmapDrawable bitmapDrawable = new BitmapDrawable(context.getResources(), b); return (Drawable) bitmapDrawable; }
From source file:Main.java
public static Drawable bitmapToDrawable(Context context, Bitmap bitmap) { return bitmap == null ? null : new BitmapDrawable(context.getResources(), bitmap); }
From source file:Main.java
public static Drawable convertBitmap2Drawable(Resources res, Bitmap bitmap) { BitmapDrawable bd = new BitmapDrawable(res, bitmap); return bd; }
From source file:Main.java
public static Drawable bitmap2Drawable(Resources res, Bitmap bitmap) { return bitmap == null ? null : new BitmapDrawable(res, bitmap); }
From source file:Main.java
public static Drawable covertBitmapToDrawable(Context context, Bitmap bitmap) { Drawable d = new BitmapDrawable(context.getResources(), bitmap); return d;//w ww . j a v a 2s . c o m }
From source file:Main.java
public static Drawable convertIntoDrawable(Resources res, Bitmap bitmap) { Drawable d = null;/*from www . j a v a 2 s . com*/ if (res != null) { d = new BitmapDrawable(res, bitmap); } return d; }
From source file:Main.java
/** * convert Bitmap to Drawable/*from w w w . j a v a 2 s.c o m*/ */ public static Drawable bitmapToDrawable(Bitmap bitmap, Resources res) { return bitmap == null ? null : new BitmapDrawable(res, bitmap); }
From source file:Main.java
public static Drawable convertToDrawable(Context context, Bitmap bitmap) { if (context == null || bitmap == null) return null; return new BitmapDrawable(context.getResources(), bitmap); }