| Commands Used with the IMGCTRL, IMGOP and PICFILL Functions |
| Syntax | |
| Details | |
| Example |
Syntax |
| rc=IMGOP(task-id, 'GAMMA', gamma-value); |
|
region-id=PICFILL(graphenv-id, type, ulr, ulc, lrr, lrc, source<, 'GAMMA' <, arguments>>); |
| 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;
Copyright © 2009 by SAS Institute Inc., Cary, NC, USA. All rights reserved.