Previous Page | Next Page

Commands Used with the IMGCTRL, IMGOP and PICFILL Functions

READ



Reads an image from an external file, a SAS catalog, or a scanner
Syntax
Details
Examples

Syntax

rc=IMGOP(task-id, 'READ', image-path<, attributes>);
rc=IMGOP(task-id, 'READ', driver, 'DEVICE=type<attributes>');

image-path

is either the pathname of the external file that contains the image or the path string that is returned by the LNAMEMK function.

Type: Character

driver

Currently only the TWAIN driver is supported (and only on the Windows operating environment). If you specify a driver, then you must use the DEVICE= attribute to indicate the type of device.

Type: Character

type

the type of device: SCANNER or CAMERA

attributes

are file- or device-specific attributes. See Attributes for Reading Image Files for possible choices.

Type: Character


Details

READ acts on the currently selected image. You can specify the file directly (using its physical filename path), or use the information returned by a previous LNAMEMK function call. The LNAMEMK function creates a single character variable that contains information about the location of the image (even if it resides in a SAS catalog), as well as other image attributes.

The FORMAT= attribute must be specified for Targa images, for images that reside in SAS catalogs, and for host-specific formats. FORMAT is not required in other cases, but it is always more efficient to specify it.


Examples

Previous Page | Next Page | Top of Page