The READ_PICT procedure reads the contents of a PICT (version 2) format image file and returns the image and color table vectors (if present) in the form of IDL variables. The PICT format is used by Apple Macintosh computers.
This routine is written in the IDL language. Its source code can be found in the file
read_pict.pro
in the
lib
subdirectory of the IDL distribution.
To open and read the PICT image file named
foo.pict
in the current directory, store the image in the variable
image1
, and store the color vectors in the variables R, G, and B, enter:
READ_PICT, 'foo.pict', image1, R, G, B