| ImageEn, unit imageenview |
|
TImageEnView.Stretch
Declaration
procedure Stretch();
Description
Sets
ZoomX and
ZoomY values to stretch the image to fit within the component borders.
Note:
◼Stretch will only have a temporary effect if
AutoShrink or
AutoStretch is enabled, unless you add
iedoDisableAutoFitWhenZoom to
DisplayOptions
◼If you use this method, the image will display without the correct aspect ratio, and some functions that rely on a consistent aspect ratio may not work correctly
you will lose the image aspect ratio and some functions, which require aspect ratio, may not work properly.
Example
ImageEnView1.Stretch();
See Also
◼Fit
◼FitToWidth
◼FitToHeight
◼loFitToLayersWhenZooming
◼FitMode