ImageStretch coding group

WPF Enum: Stretch (MSDN Stretch Enumeration).

Lua access code

To access the code of the codings below, append the coding group name and coding name to inmation.model.codes, see an example below.

return inmation.model.codes.ImageStretch.FILL

Codings

Name Code Description
FILL 2 The content is resized to fill the destination dimensions. The aspect ratio is not preserved
NONE 1 The content preserves its original size
UNIFORM 3 The content is resized to fit in the destination dimensions while it preserves its native aspect ratio
UNIFORMTOFILL 4 The content is resized to fill the destination dimensions while it preserves its native aspect ratio. If the aspect ratio of the destination rectangle differs from the source, the source content is clipped to fit in the destination dimensions