WRITE_TIFF

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.

Calling Sequence

WRITE_TIFF, Filename[, Image, Order]

Arguments

Filename

A scalar string containing the full pathname of the TIFF to write.

Image

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.

Order

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.

Keywords

PLANARCONFIG

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.

XRESOL

The horizontal resolution, in pixels per inch. The default is 100.

YRESOL

The vertical resolution, in pixels per inch. The default is 100.

Example

Create a pseudo screen dump from the current window:

WRITE_TIFF, 'test.tiff', TVRD()

See Also

READ_TIFF