| ImageEn, unit imageenview |
|
TImageEnView.ZoomX
Declaration
property ZoomX: Double;
Description
Specifies the horizontal Zoom. If you specify a ZoomX value that does not match
ZoomY, the image will display without the correct aspect ratio, and some functions that rely on a consistent aspect ratio may not work correctly.
Setting ZoomX and ZoomY to the same value is equivalent to setting
Zoom.
Note:
◼ZoomX will only have a temporary effect if
AutoShrink or
AutoStretch is enabled, unless you add
iedoDisableAutoFitWhenZoom to
DisplayOptions
◼Use
ZoomFilter to improve the quality when zooming
Default: 100
Example
// Stretch image to control size without maintaining the aspect ratio
ImageEnView1.GetIdealZoom( zoomX, zoomY );
ImageEnView1.ZoomX := zoomX;
ImageEnView1.ZoomY := zoomY;
See Also
◼Zoom
◼ZoomY
◼GetIdealZoom