getZoom: Difference between revisions

From RPTools Wiki
Jump to navigation Jump to search
(Created page with "{{MacroFunction |name=getZoom |version=1.4 |description= Gets the zoom level of the viewport. This is the same number as what you find at the bottom of the maptool window. |usag...")
 
No edit summary
Line 3: Line 3:
|version=1.4
|version=1.4
|description=
|description=
Gets the zoom level of the viewport. This is the same number as what you find at the bottom of the maptool window.
Returns the current zoom level of the viewport. This is the same number as what you find at the bottom of the Maptool window.


|usage=
|usage=

Revision as of 08:34, 30 April 2015

getZoom() Function

Introduced in version 1.4
Returns the current zoom level of the viewport. This is the same number as what you find at the bottom of the Maptool window.

Usage

getZoom()

Parameters None.

Example

Zoom in by a factor 2
[h: z = getZoom()]
[h: setZoom(2*z)]

See Also