Several transactions can be used for zooming into and out of a page.
· You can zoom into or out of a window with SetZoom. You can just specify a docwinID and a zoomLevel option, or you can also set a custom scale factor and define the center of zooming.
· To attach a zoom attribute to a specific layer instead of to a document window, use the FitLayerToWindow transaction. You can also set the layer's position with this transaction.
· You can request the current scale factor and the coordinates of the center of scaling for a document window with GetZoomFactor.
· You can set a multiplication factor for zooming with SetZoomStep(docwinID, zoomStep). The zoomStep must be between 0.0 and 3.0.
The document window or layer is displayed according to the parameters of the transaction.
To be notified when a zoom is performed through the user interface:
· Register the NotifyIM -- Zoom notification.
Tip: Zooming in external windows
See also