WRITE_TIFF procedure writes 8- or 24-bit images to a
This routine is written in the IDL language. Its source code can be found in the file
subdirectory of the IDL distribution.
Filename[, Image, Order]
A scalar string containing the full pathname of the TIFF to write.
The array to be written to the TIFF. If
has dimensions (3,
), a 24-bit TIFF is written.
should be of byte type, and in top to bottom scan line order.
The Image argument is optional if PLANARCONFIG is set to 2 and the RED, GREEN, and BLUE keywords have been specified.
This argument should be 0 if the image is stored from bottom to top (the default). For images stored from top to bottom, this argument should be 1.
Not all TIFF readers honor the value of the
argument. IDL writes the value into the file, but many known readers ignore this value. In such cases, we recommend that you convert the image to top to bottom order with the REVERSE function and then set
Set this keyword to 2 if you are writing an RGB image that is contained in three separate images (color planes). The three images must be stored in the variables specified by the RED, GREEN, and BLUE keywords. Otherwise, omit this parameter (or set it to 1).
RED, GREEN, BLUE
If you are writing a Class P, Palette color image, set these keywords equal to the color table vectors, scaled from 0 to 255.
If you are writing an RGB interleaved image (i.e., if the PLANARCONFIG keyword is set to 2), set these keywords to the names of the variables containing the 3-color component image.
The horizontal resolution, in pixels per inch. The default is 100.
The vertical resolution, in pixels per inch. The default is 100.
Create a pseudo screen dump from the current window:
WRITE_TIFF, 'test.tiff', TVRD()