IMAGE_READ Function

Reads an image file and returns an associative array in image format.

Usage

Input Parameters

Keywords


NOTE: Multiple images being read with the IMAGE_READ function must all be of the same height, width, and class. If a file contains images of different heights, widths, and/or classes, only the first contiguous sequence with equal height, width, and class are read.

NOTE: The Img_Count keyword is ignored if the All_Subimages keyword is set.

NOTE: If Sub_Img is used to request a subimage that is not in the image file, the status key of the returned image associative array is set to a negative number.

Returned Value

Discussion


NOTE: Refer to the IMAGE_CREATE function for detailed information on the structure of the image associative array.
File type Pseudo-color (8-bit with colormap) Direct color (24-bit) Support subimages (multiple images)
Read Write Read Write Read Write
BMP y y y y n n
GIF y y y y y n
JPEG y y y y n n
MIFF y y y y y n
PCD y n y n y n
PCX y y y y y n
PNG y y y y n n
SUN y y y y y n
TGA y y(c) y y y n
TIFF y y y y y n
XWD y(*) y(*) y(*) y(*) n n
XPM y(c, *) y(*) n/a n/a n n
XBM y y(bw) n/a n/a n n
c Converted to 24-bit direct color on read/write. (NOTE: In order to read an XPM file, the DISPLAY environment variable must be set.) bw Reduces the image to black and white on write. n Not supported. n/a File format does not support this class. * Not supported for Windows 95 and Windows NT.


NOTE: Filetype TGA does not have an encoded ID number. To read this type of file you must specify the File_type keyword or filename must have a .tga suffix.

Example


See Also





doc@boulder.vni.com
Copyright © 1999, Visual Numerics, Inc. All rights reserved.