home *** CD-ROM | disk | FTP | other *** search
/ Amiga ISO Collection / AmigaUtilCD2.iso / Misc / EDG-CT1.DMS / in.adf / CT.run / Scripts2 / 5 / Posterize_Image < prev    next >
Encoding:
Text File  |  1995-10-17  |  739 b   |  39 lines

  1. /*
  2.                         Control Tower Arexx Script
  3.                            Written By J.L. White
  4.                          (C)1995 Merlin's Software
  5. Lines=5
  6. 01=Posterize Image
  7. 02= 
  8. 03=This script loads each image of the File List Window
  9. 04=into ImageFX and reduces the colors, flattening them
  10. 05=for a poster-like effect.
  11.  
  12.  
  13. */
  14.  
  15. options results
  16.  
  17. arg FrameNum TotalFiles
  18. address "IMAGEFX.1"
  19.  
  20.  
  21. if FrameNum = 0 then do
  22.     FrameNum = 1
  23.     RequestSlider '"Enter Posterization Levels!"' 2 16 3
  24.     Answer = Result
  25.     call open TempFile,"RAM:CT-IFPZ",W
  26.     call writeln TempFile,Answer
  27.     call close TempFile
  28.     end
  29. else do
  30.     call open TempFile,"RAM:CT-IFPZ",R
  31.     line = readln(TempFile)
  32.     parse var line Answer
  33.     call close TempFile
  34.     end
  35.  
  36. Posterize Answer
  37.  
  38. exit
  39.