OverlayAspectRatioMode#

class ansys.stk.core.graphics.OverlayAspectRatioMode#

IntEnum

Overview#

NONE

The aspect ratio of the texture is not maintained during sizing of the screen overlay.

WIDTH

The aspect ratio of the texture is maintained based on the width property of the screen overlay. When used, the height property is ignored and the height is automatically calculated based on the aspect ratio of the texture and the overlay’s width property.

HEIGHT

The aspect ratio of the texture is maintained based on the height property of the screen overlay. When used, the width property is ignored and the width is automatically calculated based on the aspect ratio of the texture and the overlay’s height property.

Import detail#

from ansys.stk.core.graphics import OverlayAspectRatioMode