GetLastDrawnScale

globalmapper.GetLastDrawnScale(HDC aDC) float[source]

Note

This function requires a Handle to Device Context (HDC), which comes from the Windows GUI. An HDC for a window is easy to get in C++, but unobtainable in Python without relying on other modules. As such, you may be unable to use this and other functions which need an HDC as parameter; they are included in the Python SDK for Global Mapper primarily for consistency with the C++ version of the SDK and are not fully supported at current release.

Return the scale value (i.e. 24000.0 for 1:24K) that data was last rendered at. If nothing has been drawn, 0.0 is returned.

Parameters:

aDC (HDC) – Device context that was drawn to

Returns:

The scale value

Return type:

float