fun of(x: Int, y: Int): AspectRatio
Returns an instance of AspectRatio specified by x and y values.
The values x
and y
will be reduced by their greatest common divider.
Return
An instance of AspectRatio
fun of(size: Size): AspectRatio
Returns an instance of AspectRatio specified by Size.width and Size.height of size.
The values width
and height
will be reduced by their greatest common divider.
Return
An instance of AspectRatio