LUTSAVE

Saves the current colour table of an graphics device in an NDF

Description:

This routine saves the colour table of a nominated graphics device to an NDF  LUT file and/or a text file.

Usage:

lutsave lut [device]

Parameters:

DEVICE = DEVICE (Read)
The name of the graphics device whose colour table is to be saved. [Current graphics device]
FULL = _LOGICAL (Read)
If TRUE the whole colour-table for the device is stored including the reserved pens. This is necessary to save a colour table written by another package that does not reserve colour indices. For colour tables produced by Kappa this should be FALSE. [FALSE]
LOGFILE = FILENAME (Write)
The name of a text file to receive the formatted values in the colour table. Each line i the file contains the red, green and blue intensities for a single pen, separated by spaces. A null string (!) means that no file is created. [!]
LUT = NDF (Write)
The output NDF into which the colour table is to be stored. Its second dimension equals the number of colour-table entries that are stored. This will be fewer than the total number of colour indices on the device if FULL is FALSE. No NDF is created if a null (!) value is given.
TITLE = LITERAL (Read)
The title for the output NDF. ["KAPPA - Lutsave"]

Examples:

lutsave pizza
This saves the current colour table on the current graphics device to an NDF called pizza.
lutsave redshift full
This saves in full the current colour table on the current graphics device to an NDF called redshift.

Related Applications

KAPPA: LUTEDIT, LUTABLE, LUTREAD.