home *** CD-ROM | disk | FTP | other *** search
- /*
- * $VER: Scale_NewIcon.ifx (AutoFX Arexx script) 1.0 (06.09.99) ® 1999 by Przemyslaw 'SENSEI' Gruchala
- *
- * Based on the Scale_Absolute.ifx written by Thomas Krehbiel
- *
- * Scale to best NewIcon size.
- *
- * Inputs:
- * Word(Arg(1),1) = Frame number (1 - N)
- * Word(Arg(1),2) = Main filename ("-" if not specified)
- * Word(Arg(1),3) = Swap filename ("-" if not specified)
- * Word(Arg(1),4) = Sequence number
- * Word(Arg(1),5) = Total number of frames (N)
- *
- * Returns:
- * 0 if successful, non-zero on failure
- *
- */
-
- OPTIONS RESULTS
-
- GetMain
- IF result="" THEN EXIT
- PARSE VAR result . width height .
- IF width >= 94 & height >= 94 THEN DO
- IF width >= height THEN DO
- Scale 93 ( height % (width/93) )
- END
- ELSE DO
- Scale ( width % (height/93) ) 93
- END
- END
-
- EXIT rc
-