globalmapper.DrawLayerListToMemory ================================== .. currentmodule:: globalmapper .. py:function:: DrawLayerListToMemory([GM_LayerHandle_t32] aLayerList, GM_DrawFlags_t32 aDrawFlags, GM_Rectangle_t aWorldBounds, GM_ColorFormat_t32 aColorFormat, sint32 aPixelWidth, sint32 aPixelHeight, int aDataBuf, sint32 aRowWidthBytes) -> GM_Error_t32 Draws one or more layers to the provided memory buffer 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 [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 GM_ColorFormat_t32 aColorFormat: Color format used in data buffer :param sint32 aPixelWidth: Width in pixels to draw :param sint32 aPixelHeight: Height in pixels to draw :param int aDataBuf: Memory address of buffer to hold output color data :param sint32 aRowWidthBytes: Width of a single row in the array in bytes :returns: Error Code :rtype: GM_Error_t32