![]() Chapter Contents |
![]() Previous |
![]() Next |
| READ |
| Syntax | |
| Details | |
| Examples |
Syntax |
| rc=IMGOP(task-id, 'READ', image-path<, attributes >); |
|
rc=IMGOP(task-id, 'READ', device-name, 'DEVICE=CAMERA | SCANNER <attributes>'); |
Type: Character
If you specify a device name, then you must use the DEVICE= attribute to indicate the type of device.
Type: Character
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 |
path=lnamemk(5,'sashelp.imagapp.gfkids','format=cat'); rc=imgop(task-id,'READ',path);
rc=imgop(task-id,'READ','/usr/images/color/sign.gif');
rc=imgop(task-id,'READ','hpscan','device=scanner dpi=100');
rc=imgop(task-id,'READ','kodakdc40','device=camera takepic');
rc=imgop(taskid,'READ','/images/test.png','format=PNG');
rc=imgop(taskid,'READ',path); rc=imgop(taskid,'PASTE'); rc=imgctrl(taskid,'WAIT',5); rc=imgop(taskid,'READ',path2); rc=imgop(taskid,'PASTE'); rc=imgctrl(taskid,'WAIT',5);
![]() Chapter Contents |
![]() Previous |
![]() Next |
![]() Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.