Skip To Content ArcGIS for Developers Sign In Dashboard

AspectRatioMode Class

(Esri::ArcGISRuntime::AspectRatioMode)

Enumerates the aspect ratio mode used. More...

Since: Esri::ArcGISRuntime 100.0

Detailed Description

Enumerates the aspect ratio mode used.

ValueDescription
AspectRatioMode::IgnoreAspectRatio (Qt::AspectRatioMode::IgnoreAspectRatio)The size is scaled freely. The aspect ratio is not preserved.
AspectRatioMode::KeepAspectRatio (Qt::AspectRatioMode::KeepAspectRatio)The size is scaled to a rectangle as large as possible inside a given rectangle, preserving the aspect ratio.
AspectRatioMode::KeepAspectRatioByExpanding (Qt::AspectRatioMode::KeepAspectRatioByExpanding)The size is expanded to a rectangle as small as possible outside given rectangle, preserving the aspect ratio.

Feedback on this topic?