ImageUtils 
    class ImageUtils
A class containing utility methods related to bitmaps.
Types
Link copied to clipboard
                  class DrawableResult
Drawable result.
Functions
Link copied to clipboard
                  Link copied to clipboard
                  open fun calculateTargetSize(width: Int, height: Int, reqWidth: Int, reqHeight: Int, fallbackWidth: Int, fallbackHeight: Int): ImageUtils.Size
Calculates a target size based on the original image aspect ratio if either the request width or request height are 0, otherwise returns the request size.
Link copied to clipboard
                  Link copied to clipboard
                  open fun fetchScaledDrawable(@NonNull context: Context, @NonNull url: URL, reqWidth: Int, reqHeight: Int): ImageUtils.DrawableResult
Fetches a drawable from an image path.
open fun fetchScaledDrawable(@NonNull context: Context, @NonNull url: URL, reqWidth: Int, reqHeight: Int, fallbackWidth: Int, fallbackHeight: Int): ImageUtils.DrawableResult
Fetches a drawable from an image path, using the supplied fallback dimensions if the 
ImageView reports a width or height of zero.