home *** CD-ROM | disk | FTP | other *** search
- /*
- * Scale_Absolute.ifx.pre
- * Written by Thomas Krehbiel
- *
- * Scale To A Size.
- *
- * Inputs:
- * Word(Arg(1),1) = Sequence number
- * Word(Arg(1),2) = Total number of frames (N)
- *
- * Returns:
- * 0 if successful, non-zero on failure
- *
- */
-
- OPTIONS RESULTS
-
- base = 'Autofx_Scale_'
-
- w = GETCLIP(base||'w') ; IF w = "" THEN w = 320
- h = GETCLIP(base||'h') ; IF h = "" THEN h = 200
-
- Gadget.1 = 'INTEGER 120 5 50 14 "Width (Pixels):"' w
- Gadget.2 = 'INTEGER 270 5 50 14 "Height (Pixels):"' h
- Gadget.3 = 'END'
-
- NewComplexRequest '"Scale"' Gadget 340 36
- IF rc ~= 0 THEN EXIT rc
-
- CALL SETCLIP(base||'w', result.1)
- CALL SETCLIP(base||'h', result.2)
-
- EXIT
-