![]() Chapter Contents |
![]() Previous |
![]() Next |
| COPY |
| Syntax | |
| Details | |
| Example |
Syntax |
| rc=IMGOP(task-id, 'COPY', source-image-id<, destination-image-id>); |
Type: Numeric
Type: Numeric
| Details |
COPY copies an image from source-image-id to destination-image-id. That is, it assigns another image identifier to an image. If destination-image-id is not specified, it copies to the currently selected image. The copied image is not automatically displayed.
| Example |
Simulate zooming and unzooming an image:
path=lnamemk(5,'sashelp.imagapp.gkids','format=cat');
rc=imgop(task-id,'SELECT',1);
rc=imgop(task-id,'READ_PASTE',1,1,path);
if (zoom eq 1) then
do;
rc=imgop(task-id,'SELECT',2);
rc=imgop(task-id,'COPY',1,2);
rc=imgop(task-id,'SCALE',width,height);
rc=imgop(task-id,'PASTE',1,1);
if (unzoom=1) then
do;
rc=imgop(task-id,'UNPASTE');
end;
end;
![]() Chapter Contents |
![]() Previous |
![]() Next |
![]() Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.