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

  1. /*
  2.                         Control Tower Arexx Script
  3.                            Written By J.L. White
  4.                          (C)1995 Merlin's Software
  5.  
  6. Lines=8
  7. 01=Warp Image
  8. 02= 
  9. 03=This script loads each image of the File List Window into
  10. 04=ImageFX and uses the Warp Hook. Pinch will have the effect 
  11. 05=of squeezing together pixels toward a user defined point
  12. 06=while Punch has the opposite effect of pushing the pixels
  13. 07=out away from the point. Punch can simulate blister effects,
  14. 08-the magnifying qualities of water droplets or a fisheye lens.
  15.  
  16. */
  17.  
  18. options results
  19.  
  20. arg FrameNum TotalFiles
  21. address "IMAGEFX.1"
  22.  
  23.  
  24. if FrameNum = 0 then do
  25.     FrameNum = 1
  26.     Learn "RAM:CT-IFWI" NoHeader Quiet Force
  27.     Hook Warp
  28.     Learn Stop Quiet Force
  29.     end
  30. else do
  31.     if exists("RAM:CT-IFWI.ifx") then address command "Rename RAM:CT-IFWI.ifx to RAM:CT-IFWI"
  32.     call open TempFile,"RAM:CT-IFWI",R
  33.     do until eof(TempFile)
  34.         line = readln(TempFile)
  35.         parse var line Start" "RestOfLine
  36.         if Start = "Hook" then Answer = line
  37.         end
  38.     call close TempFile
  39.     Answer
  40.     end
  41.  
  42.  
  43. exit
  44.