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 syslib.model.codes, see an example below.

return syslib.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