getZoomRange()
Returns the minimum and maximum value that can be used while zooming.
Synopsis
float getZoomRange(float &minFactor, float &maxFactor);
Parameters
Parameter | Description |
---|---|
&minFactor | Minimum zoom factor |
&maxFactor | Maximum zoom factor |
Return value
The function returns 1 if OK otherwise, -1.
Error
Missing or wrong arguments.
Description
This function returns the zoom range as maximum and minimum values that can be set when using the zoom functions. The maximum and minimum of the allowed zoom factor for a project can be set using the confg entries minZoomFactor and maxZoomFactor
Example
main()
{
float minFactor, maxFactor;
getZoomRange(minFactor, maxFactor);
DebugN("Min. zoom factor: " + minFactor);// 0,5
DebugN("Max. zoom factor: " + maxFactor);// 4
}
Assignment
Management of managers
Availability
UI
See also
Reference tables, Zooming/panning, panelZoomIn(), panelZoomOut(), getZoomFactor()