home *** CD-ROM | disk | FTP | other *** search
- /*
- * Adjust_HSB.ifx
- * Script to alter the Hue, Saturation, and/or Brightness
- * values of pixels in an image: The PreScript sets up the
- * ImpAlterHSBParameters clip variable with the
- * RGB deltas.
- *
- * by Steve Tibbett
- */
-
- Options Results
-
- SeqNum=Word(Arg(1),4);
-
- Settings=GetClip("ImpAdjustHSBParameters"SeqNum);
- if (Settings="") then do
- RequestNotify "ImpAdjustHSBParameters invalid in ImpAdjustHSB.ifx"
- return 20
- End
-
- Parse Var Settings H S B
-
- If (H~=0) then Hue H
- If (S~=0) then Saturation S
- If (B~=0) then Brightness B
-