Sign in Join
FPDoc Onlineexperiment

TCustomImage.Proportional property

Member of TCustomImagepublicIn unit ExtCtrls

True if image is proportional.

Declaration

pascal
property Proportional: Boolean read FProportional write SetProportional default False;

Description

Proportional is a Boolean property which indicates if the proportions (the ratio of width to height) for an image are maintained when it is resized. When set to True, a change to the image size maintains the ratio of width to height for the original image. Proportional is used (along with Stretch) in the DestRect method to determine the rectangle needed to render the image in the control.

Changing the value for the property causes the PictureChanged method to be called.

The default value for the property is False.

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.