Preserve Aspect Ratio (PreserveAspect)

Determines whether the aspect ratio of the image is preserved at all times. True (default) or False.

PreserveAspect="True | False"

Value

Description

True

The aspect ratio is always preserved

False

The image will be scaled to fit the widget, entity, or window.

Usage

Dynamic?

Yes

Supported in Grid?

No

Dependencies:

None

Command Buttons

For command buttons, this property only takes effect if the Representation property is set to Uniface.

Picture Widgets

If the picture widget is used for printing, you can also set the AllowVerticalExpansion property, which allows the widget to be expanded while still preserving the image's aspect ratio.

Related Topics