Scales uniformly an element so that it fits in a given rectangle. No scaling is applied if the element is already small enough to fit in the rectangle.


element Element

The drawing element that should be fitted.

rect Rect

The rectangle in which the elements should be fitted.

In this article

Not finding the help you need?