computePixelSize

fun computePixelSize(srcWidth: Int, srcHeight: Int, dstSize: Size, scale: Scale): PixelSize

Calculate the pixel size required to fit/fill the source dimensions inside the destination size while preserving aspect ratio.