Commands Used with the IMGCTRL, IMGOP and PICFILL Functions |
Syntax | |
Details | |
Examples |
Syntax |
rc=IMGOP(task-id, 'WRITE', image-path<, attributes>); |
contains either the pathname of the external file that contains the image or the path string that is returned by the LNAMEMK function.
lists attributes that are specific to the file type. See Attributes for Writing Image Files.
Details |
WRITE writes the currently selected image to an external file. The file can be specified either directly (using its physical filename path) or by using the information that was returned by a previous LNAMEMK function call. The LNAMEMK function creates a character variable that contains information about the location of the image (even if it is to reside in a SAS catalog), as well as information about other image attributes.
The FORMAT= attribute (described in Attributes for Writing Image Files) must be specified if image-path does not include that information.
Examples |
Write an image to a SAS catalog:
path=lnamemk (5,'mine.images.sign','FORMAT=CAT'); rc=imgop(task-id,'WRITE',path);
Specify a file in the WRITE command. (Notice that file attributes are included.)
rc=imgop(task-id,'WRITE','/user/images/sign.tif', 'FORMAT=TIFF COMPRESS=G3FAX');
Copyright © 2009 by SAS Institute Inc., Cary, NC, USA. All rights reserved.