home *** CD-ROM | disk | FTP | other *** search
- /*
- * Adjust_RGB.ifx.pre
- * PreScript for adjusting Red, Green, and Blue.
- * Saves the parameters into the ImpAdjustRGBParameters
- * clip variable.
- *
- * by Steve Tibbett
- */
-
- options results
-
- Defaults=GetClip("ImpAdjustRGBParameters"arg(1));
- if (Defaults="") then Defaults="0 0 0"
-
- Parse Var Defaults Red Green Blue
-
- Gadget.1 = 'I/100/16/Red:/'Red
- Gadget.2 = 'I/100/30/Green:/'Green
- Gadget.3 = 'I/100/44/Blue:/'Blue
-
- ComplexRequest '"RGB Adjustments (-127 to 127)"' 3 Gadget 300 80
- IF rc ~= 0 THEN return 10
-
- Defaults=Result.1 Result.2 Result.3
- call SetClip("ImpAdjustRGBParameters"arg(1), Defaults);
-
-