scale9

When scaleImage is enabled and maintainAspectRatio is disabled, scale9 specifies the number of pixels on each image boundary that should be left unscaled, in the order [top left bottom right]. This permits you to scale only the interior of an image, leaving edge treatments unmodified.

Type

Array

Pixels: [top left bottom right]

Example

Image1.scaleImage = true;
Image1.maintainAspectRatio = false;
Image1.scale9 = [3,2,4,4];

Either syntax below can be used in component script:

scale9           // unqualified
Image1.scale9    // qualified

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