globalmapper.DrawLayerList ========================== .. currentmodule:: globalmapper .. py:function:: DrawLayerList(HDC aDC, [GM_LayerHandle_t32] aLayerList, GM_DrawFlags_t32 aDrawFlags, GM_Rectangle_t aWorldBounds, sint32 aLeftPixel, sint32 aTopPixel, sint32 aPixelWidth, sint32 aPixelHeight) -> GM_Error_t32 .. 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. Draws one or more layers to the provided device context at the given location. If *aWorldBounds* is not None, at least the specified area will be drawn. The aspect ratio of the screen pixels will be maintained, so slightly more of the world bounds than specified may be drawn. If *aWorldBounds* is None, the entire specified layer or all of the loaded layers will be rendered. :param HDC aDC: Device context to draw to :param [GM_LayerHandle_t32] aLayerList: List of layers to draw or None for all :param GM_DrawFlags_t32 aDrawFlags: Flags controlling how the draw is performed :param GM_Rectangle_t aWorldBounds: World bounds to draw or None for all :param sint32 aLeftPixel: Left pixel coordinate to draw to :param sint32 aTopPixel: Top pixel coordinate to draw to :param sint32 aPixelWidth: Width in pixels to draw :param sint32 aPixelHeight: Height in pixels to draw :returns: Error Code :rtype: GM_Error_t32