@Nullable
    public static Bitmap getBitmap(Context context, @DrawableRes int drawableResId) {
        Drawable drawable = ContextCompat.getDrawable(context, drawableResId);
        return getBitmap(context, drawable);
    }
Created by guohao4 on 2017/10/24.
Email: Tornaco@163.com
android/modules/module_common/src/main/java/github/tornaco/android/thanos/util/BitmapUtil.java