GM_ExportRaster |
Exports one or more layers to a new raster file. If NULL is passed for the layer handle, all loaded layers will be saved to the new raster file, otherwise only the specified layer will be exported. If NULL is provided for the world bounds, all available data will be exported, otherwise only data within the specified bounds will be exported.
The new raster file create will be in the current view projection as returned by the GM_GetProjection function. You can change the view projection, and thus the export projection, by calling the GM_SetProjection function.
GM_Error_t32 GM_ExportRaster ( const char* aFilename, // Name of new file to create GM_RasterExportFormat_t32 aFormat, // Format to export GM_LayerHandle_t32 aLayer, // Layer to export or NULL for all const GM_Rectangle_t* aWorldBounds, // World bounds to export or NULL for all sint32 aPixelWidth, // Width in pixels of new image sint32 aPixelHeight, // Height in pixels of new image GM_RasterExportFlags_t32 aFlags // Export flags );