computeSizeMultiplier

fun computeSizeMultiplier(srcWidth: Int, srcHeight: Int, dstWidth: Int, dstHeight: Int, scale: Scale): Double

Calculate the percentage to multiply the source dimensions by to fit/fill the destination dimensions while preserving aspect ratio.


fun computeSizeMultiplier(srcWidth: Float, srcHeight: Float, dstWidth: Float, dstHeight: Float, scale: Scale): Float
fun computeSizeMultiplier(srcWidth: Double, srcHeight: Double, dstWidth: Double, dstHeight: Double, scale: Scale): Double

See also