Previous Page | Next Page

Commands Used with the IMGCTRL, IMGOP and PICFILL Functions

ROTATE



Rotates an image clockwise by 90, 180, or 270 degrees
Syntax
Details
Example

Syntax

rc=IMGOP(task-id, 'ROTATE', degrees);
region-id=PICFILL(graphenv-id, type, ulr, ulc, lrr, lrc, source<, 'ROTATE'<, arguments>>);

degrees

is the number of degrees to rotate the image: 90, 180, or 270.

Type: Numeric


Details

ROTATE acts on the currently selected image.


Example

Rotate an image the number of degrees stored in RV:

main:
   rc=imgop(task-id,'READ',path);
   if (rv ge 90) then
      do;
         rc=imgop(task-id,'ROTATE',rv);
         rc=imgop(task-id,'PASTE');
      end;
return;

Previous Page | Next Page | Top of Page