resizeTo

fun resizeTo(width: Int, height: Int)(source)

MDN Reference