Amazon Developer

as

Settings
Sign out
Notifications
Alexa
Amazon Appstore
Ring
AWS
Documentation
Support
Contact Us
My Cases
Get Started
Design and Develop
Publish
Reference
Support
Native
Skip to main content

Struct AspectRatioMode

sealed struct AspectRatioMode
AspectRatioMode describes how to preserve the aspect ratio.

Fields

Constants

IGNORE_ASPECT_RATIO

AspectRatioMode = {0}
Size is scaled freely. The aspect ratio is not preserved. *

KEEP_ASPECT_RATIO

AspectRatioMode = {1}
Size is scaled to a rectangle as large as possible inside a given rectangle, preserving the aspect ratio. *

KEEP_ASPECT_RATIO_BY_EXPANDING

AspectRatioMode = {2}
Size is scaled to a rectangle as small as possible outside a given rectangle, preserving the aspect ratio. *
Last modified on October 29, 2026