Vcl.ExtCtrls.TImage.Stretch
Delphi
property Stretch: Boolean read FStretch write SetStretch default False;
C++
__property bool Stretch = {read=FStretch, write=SetStretch, default=0};
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
property | published | Vcl.ExtCtrls.pas Vcl.ExtCtrls.hpp |
Vcl.ExtCtrls | TImage |
Description
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
- ImageListGetBitmap (Delphi)
- TJPEGImageAssign (Delphi)
- ImageListGetBitmap (C++)
- TJPEGImageAssign (C++)