Struct TextureScaleType
sealed struct TextureScaleType
Defines how texture content should be scaled within the view bounds.
Fields
Constants
FIT_CENTER
Scale the texture uniformly (maintain aspect ratio) so that both dimensions fit within the view bounds.TextureScaleType={0}
CENTER_CROP
Scale the texture uniformly (maintain aspect ratio) so that it completely fills the view bounds, cropping if necessary.TextureScaleType={1}
FILL_XY
Scale the texture non-uniformly to exactly fill the view bounds.TextureScaleType={2}
CENTER
Center the texture in the view without scaling.TextureScaleType={3}
CENTER_INSIDE
Scale the texture uniformly (maintain aspect ratio) and center it in the view bounds.TextureScaleType={4}

