valueOf

fun valueOf(size: Size): Resolution

Converts from a Size to a Resolution.

Return

corresponding Resolution

Parameters

size

describing width and height dimensions in pixels