Description | Example | Return message | Group

MapSnap

Take a picture of the current 2D Graphics window and save it

Syntax

MapSnap <ScenarioPath> {SnapOption} [<Parameters>] [<WinNumber>]

Related commands

Description

The MapSnap command allows you to take a snapshot of a specified 2D Graphics window and save it to a file or to the clipboard

{SnapOptions} and <Parameters> can be:

{SnapOption}<Parameters>
ToFile"<FilePath>"

The format in which the file is saved is determined by the file extension on the "<FilePath>". The following are valid file extensions:

  • bmp
  • jpg
  • png
  • tif

To snap a picture to a file using more options use the RecordMovie2D command with the SnapWindow option.

ToClipboardN/A

Examples

To snap a picture of 2D Graphics window #2 and save it to the Windows clipboard:

MapSnap * ToClipboard 2

To snap a picture of the first 2D Graphics window and save in bitmap format to a file:

MapSnap * ToFile "C:\MyTemp\Map1.bmp"

To snap a picture of the 2D Graphics window #2 and save in jpeg format to a file:

MapSnap * ToFile "C:\MyTemp\Map2.jpg" 2

Return message

Group membership

This command belongs to the following group(s):

2D Graphics Window

Version

11.3