From RAD Studio API Documentation
Jump to: navigation, search


property Stretch: Boolean read FStretch write SetStretch default False;


__property bool Stretch = {read=FStretch, write=SetStretch, default=0};


Type Visibility Source Unit Parent
property published
Vcl.ExtCtrls TImage


Indicates whether the image should be changed so that it exactly fits the bounds of the image control.

Set Stretch to true to cause the image to assume the size and shape of the image control. When the image control resizes, the image resizes also. Stretch resizes the height and width of the image independently. Thus, unlike a simple change in magnification, Stretch can distort the image if the image control is not the same shape as the image.

To resize the image without any distortion, use the Proportional property instead.

To resize the control to the image rather than resizing the image to the control, use the AutoSize property instead.

The default value for Stretch is false.

Note: Stretch has no effect if the Picture property contains an icon.

See Also

Code Examples