READ_PICT
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 Mac 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.
Note: To find information about a potential PICT file before trying to read its data, use the QUERY_PICT function.
Examples
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
To load the new color table and display the image, enter:
TVLCT, R, G, B
TV, image1
Syntax
READ_PICT, Filename, Image [, R, G, B]
Arguments
Filename
A scalar string specifying the full pathname of the PICT file to read.
Image
A named variable that will contain the 2-D image read from Filename.
R, G, B
Named variables that will contain the Red, Green, and Blue color vectors read from the PICT file.
Keywords
None.
Version History
Pre-4.0 |
Introduced |