home *** CD-ROM | disk | FTP | other *** search
/ Amiga ISO Collection / AmigaUtilCD2.iso / Misc / EDG-CT1.DMS / in.adf / CT.run / Scripts2 / 5 / Apply_HalfTone_To_Image < prev    next >
Encoding:
Text File  |  1995-10-11  |  1.1 KB  |  54 lines

  1. /*
  2.                         Control Tower Arexx Script
  3.                            Written By J.L. White
  4.                          (C)1995 Merlin's Software
  5.  
  6. Lines=5
  7. 01=Apply HalfTone To Image
  8. 02= 
  9. 03=This script will load an image into
  10. 04=Image FX and then apply one of several
  11. 05=types of Halftone Dithering algorithms
  12. 05=to the image.
  13.  
  14. */
  15.  
  16. options results
  17.  
  18. arg FrameNum TotalFiles
  19. address "IMAGEFX.1"
  20.  
  21.  
  22. if FrameNum = 0 then do
  23.     FrameNum = 1
  24.     Gadget.1 = 'Select HalfTone Dithering Type:'
  25.     Gadget.2 = '45 Degree Cluster'
  26.     Gadget.3 = '0 Degree Cluster'
  27.     Gadget.4 = 'Spiral Cluster'
  28.     Gadget.5 = 'Line Cluster'
  29.     Gadget.6 = '4X4 Dispersed'
  30.     Gadget.7 = '6X6 Dispersed'
  31.     Gadget.8 = '50 % Threshold'
  32.     ListRequest 6 Gadget
  33.     if result = 2 then Type = 0
  34.     if result = 3 then Type = 1
  35.     if result = 4 then Type = 2
  36.     if result = 5 then Type = 3
  37.     if result = 6 then Type = 5
  38.     if result = 7 then Type = 6
  39.     if result = 8 then Type = 9
  40.     call open TempFile,"Ram:CT-IFHT",W
  41.     call writeln TempFile,Type
  42.     call close TempFile
  43.     end
  44. else do
  45.     call open TempFile,"Ram:CT-IFHT",R
  46.     line = readln(TempFile)
  47.     parse var line Type
  48.     call close TempFile
  49.     end
  50.  
  51. Halftone Type
  52.  
  53. exit
  54.