#

## save

Save the layer colormap to a file.

### Usage:

> save [techStyle displayStyle monitorType]

> > where techStyle is the type of "dstyle" file requested by the technology (normally "mos"), displayStyle is the type of display (normally NULL, but when specified should be "24bit", "8bit", or "OpenGL" to match the type of display), and monitorType is typically "std".

### Summary:

> The save command saves the contents of the color map in a file that can be retrieved with the color window load command. This file is saved in the current working directory and has the format

> > techStyle.displayStyle.monType.cmap

> Without arguments, the default colormap filename varies according to the display type, but is normally one of:

> > mos.24bit.std.cmap for 24- and 32-bit display visuals
> > mos.7bit.std.cmap for 8-bit display visuals
> > mos.OpenGL.std.cmap for OpenGL displays

> Note that for the colormap to be read by magic on startup, the filename format above must be adhered to.

### Implementation Notes:

> save is implemented as a built-in color window command in magic. It can only be invoked from a window created with the specialopen color command.

### See Also:

> load

Return to command index

Last updated: October, 2004