home *** CD-ROM | disk | FTP | other *** search
- /*
- * $VER: MapToWB 1.00.00 (24.9.92)
- *
- * Arexx program for the ImageFX image processing system.
- * Written by Thomas Krehbiel
- *
- * Render the current image such that it can be displayed on a
- * standard 4-color 640x200 Workbench screen.
- *
- */
-
- OPTIONS RESULTS
-
- GetMain ; IF result = "" THEN EXIT /* make sure we have a buffer */
-
- RequestFile '"Output Image Name..."' /* Get filename from user */
- IF rc ~= 0 THEN EXIT /* Cancelled... */
- output = result
-
- SaveUndo ; Undo Off ; Redraw Off /* Save undo buffer, then turn it off */
-
- /* Scale image to 640x200 */
-
- Palette Rend /* Select render palette */
- GrabPalette Workbench /* Grab workbench screen colors */
- SetRange 8 0 15 /* Make range 8 the first four colors */
- LockRange 8 On /* Lock the first four colors */
-
- Render Go /* Render the image */
- SaveRenderedAs ICON output Stack 4096 Tool
- Render Close /* Close render screen */
-
- Undo On ; Undo Quiet ; Redraw On /* Restore original image */
-
- EXIT /* All done */
-
-