Previous Page | Next Page

Commands Used with the IMGCTRL, IMGOP and PICFILL Functions

COPY



Copies an image
Syntax
Details
Example

Syntax

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


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;

Previous Page | Next Page | Top of Page