ConstructSnapshot()

Summary

Convert a customized image file into a map snapshot.

Syntax

ConstructSnapshot(string map_name, string snapshot_name, scope image_scope, string path)

Argument Contents
map_name Name of map to which the snapshot should be added
snapshot_name Name for the new snapshot
image_scope Scope represented by the image file
path Full path and name of the image file used as the snapshot

Notes

  • Snapshots allow you to save multiple map images and their associated scopes in a single map file and switch between them quickly.

  • ConstructSnapshot() lets you create a snapshot from a file that you have created or edited using a drawing or paint program.

  • For a full list of scope-related GISDK functions, see Map Scales and Scopes.

Error Codes

Error Type Meaning
NotFound The specified map or image file does not exist

See Also

Function Summary
CreateSnapshot() Stores a snapshot image of the map as currently displayed
ShowSnapshot() Displays a snapshot and sets the map scope to match
GetSnapshot() Gets the scope and image file of a snapshot
GetSnapshots() Gets a list of all snapshots associated with a map
DeleteSnapshot() Removes a snapshot from a map and deletes its image file