scaleImage

Image Properties for general information about Image components.

Specifies that the image should be scaled to the Image component dimensions. Scaling can be set to either preserve the image proportions (maintainAspectRatio, default) or to resize just a selected portion of the image (scale9).

The scaleImage and tile properties are mutually exclusive.

Type

Boolean

true: scale image to container
false: keep original image size

Example

Image1.scaleImage = true;

Either syntax below can be used in component script:

scaleImage           // unqualified
Image1.scaleImage    // qualified

For onInit/onRefresh scripts, and for component and property scripts on other components, the second (qualified) form is required.