WRITE_IMAGE
Syntax | Arguments | Keywords | Version History
The WRITE_IMAGE procedure writes an image and its color table vectors, if any, to a file of a specified type. WRITE_IMAGE can write most types of image files supported by IDL.
Syntax
WRITE_IMAGE, Filename, Format, Data [, Red, Green, Blue] [, /APPEND]
Arguments
Filename
A scalar string containing the name of the file to write.
Format
A scalar string containing the name of the file format to write. The following are the supported formats:
Data
An IDL variable containing the image data to write to the file.
Red
An optional vector containing the red channel of the color table if a colortable exists.
Green
An optional vector containing the green channel of the color table if a colortable exists.
Blue
An optional vector containing the blue channel of the color table if a colortable exists.
Keywords
APPEND
Set this keyword to force the image to be appended to the file instead of overwriting the file. APPEND may be used with image formats that supports multiple images per file and is ignored for formats that support only a single image per file.
Version History