home *** CD-ROM | disk | FTP | other *** search
- /*
- Control Tower Arexx Script
- Written By J.L. White
- (C)1995 Merlin's Software
-
- Lines=7
- 01=Gradually AntiAlias Images
- 02=
- 03=This script loads each image of the File List Window
- 04=into ImageFX and Gradually Anti Alias the images over
- 05=the length of frames. It divides the total number of
- 06=frames by the current frame number * the highest value
- 07=of this function to gradually adjust the list.
-
- */
-
- options results
-
- arg Num TotalNum
- address "IMAGEFX.1"
-
-
- if Num = 0 then do
- Num = 1
- Gadget.1 = 'Select AnitAlias Mode To Use?'
- Gadget.2 = 'EdgeDetect'
- Gadget.3 = 'Interpolate'
- Gadget.4 = 'Convolve'
- ListRequest 4 Gadget
- Answer = ""
- if result = 2 then Answer = 0
- if result = 3 then Answer = 1
- if result = 4 then Answer = 2
- call open TempFile,"Ram:CT-IFAA",W
- call writeln TempFile,Answer
- call close TempFile
- end
- else do
- call open TempFile,"Ram:CT-IFAA",R
- line = readln(TempFile)
- parse var line Answer
- call close TempFile
- end
-
- NewNum = ((Num * 255)/(TotalNum))
- NewNum = trunc(NewNum)
- if Num > 1 then
- Hook AntiAlias Answer NewNum
-
-
-
- exit
-