fetchScaledBitmap
open fun fetchScaledBitmap(@NonNull context: Context, @NonNull url: URL, reqWidth: Int, reqHeight: Int): Bitmap
Create a scaled bitmap.
Return
The scaled bitmap.
Parameters
context
The application context.
url
The URL image.
reqWidth
The requested width of the image.
reqHeight
The requested height of the image.
Throws
if file fails to be created.
open fun fetchScaledBitmap(@NonNull context: Context, @NonNull url: URL, reqWidth: Int, reqHeight: Int, fallbackWidth: Int, fallbackHeight: Int): Bitmap
Create a scaled bitmap.
Return
The scaled bitmap.
Parameters
context
The application context.
url
The URL image.
reqWidth
The requested width of the image.
reqHeight
The requested height of the image.
fallbackWidth
The width dimension to be used if the ImageView reports a width of zero.
fallbackHeight
The height dimension to be used if the ImageView reports a height of zero.
Throws
if file fails to be created.