home *** CD-ROM | disk | FTP | other *** search
- /*
- * $VER: Scaler 1.00.00 (24.9.92)
- *
- * Arexx program for the ImageFX image processing system.
- * Written by Thomas Krehbiel
- *
- * Scale the current buffer such that it can be rendered properly
- * and all fit onscreen in HAM-interlaced.
- *
- */
-
- OPTIONS RESULTS
-
- GetMain ; IF result = "" THEN EXIT
- PARSE VAR result name width height depth .
-
- DO WHILE (width > 736) | (height > 480)
-
- IF width > 736 THEN DO
- height = height * 736 % width
- width = 736
- END
- ELSE IF height > 480 THEN DO
- width = width * 480 % height
- height = 480
- END
-
- END
-
- Scale width%2 height
-