ImageEn, unit imageenview




procedure ZoomOut(FitAndFullOnly: Boolean = False; X: Integer = -1; Y: Integer = -1);


Provides a convenient method to handle clicking of a "Zoom Out" button. Each time ZoomOut is called it decreases the zoom by a logical step, e.g. 100 to 75, 75 to 50, etc. (FitAndFullOnly = False).
It also includes "Fit to Window" as one of the steps.
If FitAndFullOnly = True, then there are only two steps, "Fit to Window" or 100% zoom.
If X and Y are specified, then it will zoom out from the specified position (in client coordinates). Zooming will be smooth if miSmoothZoom is specified for MouseInteractGeneral.

 ZoomOut 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

See Also