SaveMapToBitmap()

Summary

Saves the map image as a Windows bitmap file.

Syntax

SaveMapToBitmap(string map_name, string bitmap_file)

Argument Contents
map_name The map to be saved, or null for the current map
bitmap_file The path and file name of the bitmap file to be created

Notes

  • The bitmap file includes only the contents of the window, not the title, border, etc.

  • It is preferable to use the SaveMapToImage() function rather than this function.

Example

SaveMapToBitmap("My Map", "c:\\bitmaps\\slide1.bmp")

Error Codes

Error Type Meaning
Error Error writing to disk (e.g., out of disk space)
NotFound The specified map does not exist

See Also

Function Summary
SaveMapToImage() Saves the contents of the map window to an image file
SaveMapToJPEG() Saves a map image as a JPEG compressed file