computeDstSize

fun computeDstSize(srcWidth: Int, srcHeight: Int, targetSize: Size, scale: Scale, maxSize: Size): IntPair

Parse targetSize and return the destination dimensions that the source image should be scaled into. The returned dimensions can be passed to computeSizeMultiplier to get the final size multiplier.