GM_LayerList_tDrawLayerListToMemory Method
Draws the specified portion of the specified layers to the provided memory buffer. If no layers are explicitly specified, all loaded layers will be drawn.

Namespace:  GlobalMapper
Assembly: GlobalMapperWrapperNET (in GlobalMapperWrapperNET.dll) Version: 18.0.0.0 (18.0.0.0)

Syntax
C#
public static GM_Error_t32 DrawLayerListToMemory(
	GM_LayerList_t aLayerList,
	GM_DrawFlags_t32 aDrawFlags,
	GM_Rectangle_t aWorldBounds,
	GM_ColorFormat_t32 aColorFormat,
	int aPixelWidth,
	int aPixelHeight,
	IntPtr aDataBuf,
	int aRowWidthBytes
)

Parameters

aLayerList
Type: GlobalMapperGM_LayerList_t
(GM_LayerHandle_t32*)List of layers to draw or NULL for all
aDrawFlags
Type: GlobalMapperGM_DrawFlags_t32
Flags controlling how the draw is performed
aWorldBounds
Type: GlobalMapperGM_Rectangle_t
(GM_Rectangle_t*) World bounds to draw or NULL for all
aColorFormat
Type: GlobalMapperGM_ColorFormat_t32
Color format used in data buffer
aPixelWidth
Type: SystemInt32
Width in pixels to draw
aPixelHeight
Type: SystemInt32
Height in pixels to draw
aDataBuf
Type: SystemIntPtr
(void*) Buffer to hold output color data
aRowWidthBytes
Type: SystemInt32
Width of a single row in the array in bytes

Return Value

Type: GM_Error_t32
A GM Error Code
See Also