Skip to main content

TcxImageZoomingOptions.ZoomPercent Property

Specifies the current zoom percentage for the image editor.

Declaration

property ZoomPercent: Integer read; write; default 100;

Property Value

Type Default Description
Integer 100

The current zoom percentage in the image editor.

The property value ranges between MinZoom and MaxZoom property values.

Remarks

You can use the ZoomPercent property to zoom the displayed image in or out if zoom operations are available (the editor’s Properties.FitMode property is set to ifmNormal). If the ShowZoomTrackBar property is set to True, the editor displays a zoom track bar when the mouse pointer is within the editor’s boundaries.

VCL Editors Library: Zoom Operations in an Image Editor

Users can also rotate the mouse wheel while holding the Ctrl key to zoom the displayed image in or out regardless of the zoom track bar’s visibility. If the Properties.Center property is set to False, users can also pan the displayed image.

Default Value

The ZoomPercent property’s default value is 100.

See Also