computeCropRectFromAspectRatio

fun computeCropRectFromAspectRatio(sourceSize: Size, aspectRatio: Rational): Rect?

Calculates crop rect with the specified aspect ratio on the given size. Assuming the rect is at the center of the source.