setAspectRatio

open fun setAspectRatio(aspectRatio: Double)

Sets the desired aspect ratio. The value is width / height.