calculateTargetSize
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.
Return
The target Size.
Parameters
width
The width of the image.
height
The height of the image.
reqWidth
The requested width of the image.
reqHeight
The requested height of the image.