getOptimalResolution

fun getOptimalResolution(actualResolution: Size, resolutionsSupported: Array<Size>): Size