resize Function

@JvmOverloads external fun resize(width: Int, height: Int, uniform: Boolean = false)

Scales this page to the given size, replacing its pixels.

Parameters

  • width — the target width in pixels; must be positive
  • height — the target height in pixels; must be positive
  • uniform — true to preserve the aspect ratio, fitting the page inside the given size rather than stretching to it

Throws

Top