home *** CD-ROM | disk | FTP | other *** search
- /*
- Control Tower Arexx Script
- Written By J.L. White
- (C)1995 Merlin's Software
-
- Lines=6
- 01=Remove Feature From Image
- 02=
- 03=This script loads each image of the File List Window
- 04=into ImageFX and allows you to select a region of the
- 05=image and remove everything within it by pulling the
- 06=edges together.
- */
-
- options results
-
- arg Num TotalNum
- address "IMAGEFX.1"
- if Num = 0 then Num = 1
- if Num = 1 then
- call PickBox()
- else
- call GetSettings()
-
- BoxRegion X1 Y1 X2 Y2
- RemoveFeature
-
- exit
-
-
- GetSettings:
- call open TempFile,"RAM:CT-IFRF",R
- line = readln(TempFile)
- parse var line X1 Y1 X2 Y2
- call close TempFile
- return
-
-
- PickBox:
- Menu ToolBox
- RequestNotify "Draw Rectangle Where You Want Features Removed!"
- DrawTool Box
- HidePanel
- Undo On
- WaitFor SELECTDOWN
- parse var result X1 Y1
- WaitFor SELECTUP
- parse var result X2 Y2
- Undo
- ShowPanel
- Undo Off
- X1 = strip(X1)
- Y1 = strip(Y1)
- X2 = strip(X2)
- Y2 = strip(Y2)
- Answer = X1" "Y1" "X2" "Y2
- RequestResponse "Is The Box You Selected Correct?"
- if rc ~= 0 then call PickBox()
- call open TempFile,"RAM:CT-IFRF",W
- call writeln TempFile,X1" "Y1" "X2" "Y2
- call close TempFile
-
- return
-