| Maptitude GISDK Help |
Saves map graphics to a Windows Enhanced metafile.
SaveMapToMetafile(string map_name, string emf_name, array options)
| Argument | Contents |
|---|---|
| map_name | The map to be saved as a metafile, or null for the current map |
| emf_name | The path and file name of the Windows Enhanced metafile to be created |
| Option | Type | Contents |
|---|---|---|
| Transparent | Boolean | If "True" the background will not be "erased" before drawing to the metafile (by default, the background is erased) |
If only the file name is given, the .emf file is saved to Maptitude's program directory.
The .emf file created is a "placeable" metafile, required by most applications that can draw objects.
SaveMapToMetafile( , "c:\\graphics\\world.emf", )
| Error Type | Meaning |
|---|---|
| Error | The filename is invalid or could not be created |
| NotFound | The specified map does not exist |
| Function | Summary |
|---|---|
| SaveMapToBitmap() | Saves the map image as a Windows bitmap file |
| SaveMapToImage() | Saves the contents of the map window to an image file |
| SaveMapToJPEG() | Saves a map image as a JPEG compressed file |
| ©2025 Caliper Corporation | www.caliper.com |