Previous Page | Next Page

Commands Used with the IMGCTRL, IMGOP and PICFILL Functions

GAMMA



Applies a gamma value to the selected image
Syntax
Details
Example

Syntax

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

gamma-value

is the gamma value to apply to the image.

Type: Numeric


Details

GAMMA corrects the image by either darkening or lightening it. Gamma values must be positive, with the most useful values ranging between 0.5 and 3.0. A gamma value of 1.0 results in no change to the image. Values less than 1.0 darken the image, and values greater than 1.0 lighten it.


Example

Apply a gamma value that has previously been stored in GAMNUM:

if 
(gamma eq 1) then
   do;
      rc=imgop(task-id,'GAMMA',gamnum);
      if (rc ne 0) then _msg_='gamma error';
      rc=imgop(task-id,'PASTE');
   end;

Previous Page | Next Page | Top of Page