globalmapper.ExportMapLayoutComponent¶
- globalmapper.ExportMapLayoutComponent(str aFilename, GM_MapLayoutPiece_t8 aPiece, GM_Rectangle_t aWorldBounds, sint32 aPixelWidth, sint32 aPixelHeight, int aReserved) GM_Error_t32 [source]¶
Exports a component of the currently setup map layout (use LoadMapLayoutFile to load a layout definition) to a bitmap (BMP) file. The bounding box and pixel dimensions that you specify are the same as you would provide to the DrawLayerList function and are used to determine the pixel size that the BMP file will use. If you always call this after a draw, just pass in None for the world bounds and 0 for both pixel dimensions.
- Parameters
aFilename (str) – name of bitmap file to save to
aPiece (GM_MapLayoutPiece_t8) – which piece of the map layout to save
aWorldBounds (GM_Rectangle_t) – World bounds to use for rendering layout or None for last drawn
aPixelWidth (sint32) – Width in pixels of FULL RENDER SCREEN (NOT LAYOUT PIECE) to use for generating map layout. Use 0 for last drawn.
aPixelHeight (sint32) – Height in pixels of FULL RENDER SCREEN (NOT LAYOUT PIECE) to use for generating map layout. Use 0 for last drawn.
aReserved (int) – reserved for later use, must be 0.
- Returns
Error Code
- Return type
GM_Error_t32