The WRITE_TIFF procedure writes 8- or 24-bit images to a TIFF file.
This routine is written in the IDL language. Its source code can be found in the file
write_tiff.pro
in the
lib
subdirectory of the IDL distribution.
The array to be written to the TIFF. If Image has dimensions (3, n,m ), a 24-bit TIFF is written. Image should be of byte type, and in top to bottom scan line order.
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).
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.