List of usage examples for android.graphics BitmapFactory decodeResource
public static Bitmap decodeResource(Resources res, int id)
From source file:Main.java
public static Integer getWidth(Context ctx, int drawable) { return BitmapFactory.decodeResource(ctx.getResources(), drawable).getWidth(); }
From source file:Main.java
public static Integer getHeight(Context ctx, int drawable) { return BitmapFactory.decodeResource(ctx.getResources(), drawable).getHeight(); }
From source file:Main.java
public static Bitmap getBmpFromRes(Context cx, int resId) { return BitmapFactory.decodeResource(cx.getResources(), resId); }
From source file:Main.java
public static Bitmap decodeBitmap(int res, Context context) { return BitmapFactory.decodeResource(context.getResources(), res); }
From source file:Main.java
public static Bitmap drawable2Bitmap(Context context, int d) { return BitmapFactory.decodeResource(context.getResources(), d); }
From source file:Main.java
public static Bitmap fromResource(Context context, int resourceId) { return BitmapFactory.decodeResource(context.getResources(), resourceId); }
From source file:Main.java
public static Bitmap getBitmap(Resources res, int bitmapId) { return BitmapFactory.decodeResource(res, bitmapId); }
From source file:Main.java
public static Bitmap getBitmapById(Context context, int drawableId) { return BitmapFactory.decodeResource(context.getResources(), drawableId); }
From source file:Main.java
private static Bitmap getBMResouce(Resources resources, int res) { return BitmapFactory.decodeResource(resources, res); }
From source file:Main.java
public static Bitmap getBitmapFromResouce(Context context, int id) { return BitmapFactory.decodeResource(context.getResources(), id); }