FREE TRIAL

|

☀
☾
enum

ImageScaleMode

Specifies how a parent element renders an image based on the aspect ratio of the image and the parent element itself.

Related Articles
Auto Image Adjustment

Fields

Name Description
Envelope

As the parent's size changes, the image scale will adjust automatically to ensure the image maximally fills its parent container. Preserves the image's native aspect ratio (unstretched).

Fit

As the parent's size changes, the image scale will adjust automatically to ensure the full image fits within its parent container. Preserves the image's native aspect ratio (unstretched).

Manual

No automatic adjustment is made to the image's scale. If the aspect ratio of the parent element and image do not match, the image will stretch.

Sliced

The image will be displayed as a 9-sliced sprite.
NOTE: the PixelsPerUnitMultiplier value determines the width of the borders.

Tiled

The image will be displayed as a 9-sliced sprite with the sections being tiled instead of stretched.
NOTE: the PixelsPerUnitMultiplier value determines the width of the borders and the size of the tiles.

See Also
UIBlock2D.ImageAdjustment
ImageAdjustment
☀
☾
In This Article
Legal EmailContact Github
Copyright © 2022 Supernova Technologies, LLC