Home | Categories | Alphabetical | Classes | All Contents | [ < ] | [ > ]

WRITE_PICT


Syntax | Arguments | Examples | Version History | See Also

The WRITE_PICT procedure writes an image and its color table vectors to a PICT (version 2) format image file. The PICT format is used by Apple Macintosh computers.

Note: WRITE_PICT only works with 8-bit displays

This routine is written in the IDL language. Its source code can be found in the file write_pict.pro in the lib subdirectory of the IDL distribution.

Syntax

WRITE_PICT, Filename [, Image, R, G, B]

Arguments

Filename

A scalar string containing the full pathname of the PICT file to write.

Image

The byte array to be written to the PICT file. If Image is omitted, the entire current graphics window is read into an array and written to the PICT file.

R, G, B

The Red, Green, and Blue color vectors to be written to the PICT file. If R, G, B values are not provided, the last color table established using LOADCT is included. If no color table has been established, WRITE_PICT calls LOADCT to load the grayscale entry (table 0).

Examples

Create a pseudo screen dump from the current window. Note that this works only on a PseudoColor (8-bit) display:

WRITE_PICT, 'test.pict', TVRD() 

Version History

Introduced: Pre 4.0

See Also

READ_PICT, QUERY_* Routines


Home | Categories | Alphabetical | Classes | All Contents | [ < ] | [ > ]