home *** CD-ROM | disk | FTP | other *** search
- /*
- Control Tower Arexx Script
- Written By J.L. White
- (C)1995 Merlin's Software
- Lines=5
- 01=Distort
- 02=
- 03=This script will load an image into
- 04=Image FX and distort the image based
- 05=on an image loaded into the Alpha channel.
-
- */
-
- options results
-
- arg FrameNum TotalFiles
- address "IMAGEFX.1"
-
-
- if FrameNum = 0 then do
- FrameNum = 1
- RequestFile '"Select Image To Use For Alpha Channel!"'
- Pic = Result
- Gadget.1 = 'Select Drawing Operation For Alpha Channel!'
- Gadget.2 = 'Frisket'
- Gadget.3 = 'Texture'
- ListRequest 3 Gadget
- if result = 2 then AlphaChannel Frisket
- if result = 3 then AlphaChannel Texture
- RequestSlider '"Enter Amount Of Distortion To Apply!"' 1 255 32
- Answer = Result
- call open TempFile,"Ram:CT-IFDT",W
- call writeln TempFile,Answer
- call writeln TempFile,Pic
- call close TempFile
- end
- else do
- call open TempFile,"Ram:CT-IFDT",R
- line = readln(TempFile)
- parse var line Answer
- line = readln(TempFile)
- parse var line Pic
- call close TempFile
- end
-
- LoadAlpha Pic Force Smooth
- Distort Answer
-
- exit
-