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 TextureScaleType

sealed struct TextureScaleType
Defines how texture content should be scaled within the view bounds.

Fields

Constants

FIT_CENTER

TextureScaleType = {0}
Scale the texture uniformly (maintain aspect ratio) so that both dimensions fit within the view bounds.

CENTER_CROP

TextureScaleType = {1}
Scale the texture uniformly (maintain aspect ratio) so that it completely fills the view bounds, cropping if necessary.

FILL_XY

TextureScaleType = {2}
Scale the texture non-uniformly to exactly fill the view bounds.

CENTER

TextureScaleType = {3}
Center the texture in the view without scaling.

CENTER_INSIDE

TextureScaleType = {4}
Scale the texture uniformly (maintain aspect ratio) and center it in the view bounds.
Last modified on October 29, 2026