home *** CD-ROM | disk | FTP | other *** search
- /*
- * Adjust_RGB.ifx
- * Script to alter the red, green, and/or blue values
- * of pixels in an image: The PreScript sets up the
- * ImpAlterRGBParameters clip variable with the
- * RGB deltas.
- *
- * by Steve Tibbett
- */
-
- Options Results
-
- SeqNum=Word(Arg(1),4);
-
- Settings=GetClip("ImpAdjustRGBParameters"SeqNum);
- if (Settings="") then do
- RequestNotify "ImpAdjustRGBParameters invalid in ImpAdjustRGB.ifx"
- return 20
- End
-
- Parse Var Settings R G B
-
- If (R~=0) then Red R
- If (G~=0) then Green G
- If (B~=0) then Blue B
-