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

  1. /*
  2.                         Control Tower Arexx Script
  3.                            Written By J.L. White
  4.                          (C)1995 Merlin's Software
  5.  
  6. Lines=7
  7. 01=Gradually AntiAlias Images
  8. 02= 
  9. 03=This script loads each image of the File List Window
  10. 04=into ImageFX and Gradually Anti Alias the images over
  11. 05=the length of frames. It divides the total number of
  12. 06=frames by the current frame number * the highest value
  13. 07=of this function to gradually adjust the list.
  14.  
  15. */
  16.  
  17. options results
  18.  
  19. arg Num TotalNum
  20. address "IMAGEFX.1"
  21.  
  22.  
  23. if Num = 0 then do
  24.     Num = 1
  25.     Gadget.1 = 'Select AnitAlias Mode To Use?'
  26.     Gadget.2 = 'EdgeDetect'
  27.     Gadget.3 = 'Interpolate'
  28.     Gadget.4 = 'Convolve'
  29.     ListRequest 4 Gadget
  30.     Answer = ""
  31.     if result = 2 then Answer = 0
  32.     if result = 3 then Answer = 1
  33.     if result = 4 then Answer = 2
  34.     call open TempFile,"Ram:CT-IFAA",W
  35.     call writeln TempFile,Answer
  36.     call close TempFile
  37.     end
  38. else do
  39.     call open TempFile,"Ram:CT-IFAA",R
  40.     line = readln(TempFile)
  41.     parse var line Answer
  42.     call close TempFile
  43.     end
  44.  
  45. NewNum = ((Num * 255)/(TotalNum))
  46. NewNum = trunc(NewNum)
  47. if Num > 1 then 
  48.     Hook AntiAlias Answer NewNum
  49.  
  50.  
  51.  
  52. exit
  53.