aspect

Specifies how the image is to map to the nominal content region of the image’s container.

Syntax

Reference_Syntax.aspect = "fit | none | actual | width | height"

Values

Type

Values

String

fit (default)

The application scales the image proportionally to the maximum size of the container’s content region.

none 

The application scales the image to the size of entire container’s content region. This may result in different scale values being applied to the image's X and Y coordinates.

actual 

The image is rendered using the dimensions stored in the image content. The extent of the container’s region does not affect the sizing of the image.

width 

The application scales the image proportionally to the width of the container’s content region. The image might be taller or shorter than the content region.

height 

The application scales the image proportionally to the height of the container’s content region. The image might be wider or narrower than the content region.

Applies to

Version

XFA 2.1

Examples

JavaScript

ImageField1.resolveNode("value.#image").aspect = "actual";

FormCalc

ImageField1.value.#image.aspect = "actual"

// Ethnio survey code removed