changeAspectRatio

fun changeAspectRatio(width: Double, height: Double)

Adjust the envelope's aspect ratio to match the ratio of the given width and height. The operation preserves the center of the envelope and only increases either height or width, not both. If the new width would be greater than the old, the width is changed and the height remains the same. If the new width would be less than or equal to the old, the height is changed and the width remains the same.

Since

200.1.0

Parameters

width

A width.

height

A height.