compat/src/main/java/androidx/core/graphics/drawable/RoundedBitmapDrawableFactory.java
@NonNull
    public static RoundedBitmapDrawable create(@NonNull Resources res, @Nullable Bitmap bitmap) {
        if (Build.VERSION.SDK_INT >= 21) {
            return new RoundedBitmapDrawable21(res, bitmap);
        }
        return new DefaultRoundedBitmapDrawable(res, bitmap);
    }
/**
     * Returns a new drawable by creating it from a bitmap, setting initial target density based on
     * the display metrics of the resources.
     */
Returns a new drawable by creating it from a bitmap, setting initial target density based on
the display metrics of the resources.
Returns a new drawable by creating it from a bitmap setting initial target density based on the display metrics of the resources .
@NonNull
    public static RoundedBitmapDrawable create(@NonNull Resources res, @Nullable Bitmap bitmap) {
        if (Build.VERSION.SDK_INT >= 21) {
            return new RoundedBitmapDrawable21(res, bitmap);
        }
        return new DefaultRoundedBitmapDrawable(res, bitmap);
    }
@ NonNull public static RoundedBitmapDrawable create ( @ NonNull Resources res , @ Nullable Bitmap bitmap ) { if ( Build . VERSION . SDK_INT >= 21 ) { return new RoundedBitmapDrawable21 ( res , bitmap ) ; } return new DefaultRoundedBitmapDrawable ( res , bitmap ) ; }
Returns a new drawable by creating it from a bitmap, setting initial target density based on
 the display metrics of the resources.
Returns a new drawable by creating it from a bitmap setting initial target density based on the display metrics of the resources .