Commands Used with the IMGCTRL, IMGOP and PICFILL Functions |
Copies an image
rc=IMGOP(task-id, 'COPY', source-image-id<,
destination-image-id>);
|
-
source-image-id
-
is the identifier of the image to copy.
Type:
Numeric
-
destination-image-id
-
is the new identifier of the copied image.
Type: Numeric
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.
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;
Copyright © 2011 by SAS Institute Inc., Cary, NC, USA. All rights reserved.