cameraViewEx / com.priyankvasa.android.cameraviewex / AspectRatio / of

of

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.

Parameters

x - The width

y - The height

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.

Parameters

size -

Return
An instance of AspectRatio