home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Format 127
/
af127a.adf
/
PerfectPaint.lzx
/
PerfectPaint
/
rexx
/
general
/
SaveGif_Brush.rx
< prev
next >
Wrap
Text File
|
1999-06-17
|
937b
|
64 lines
/* arexx Script
SAVE Brush in gif format
need 'tapgif' in PerfectPaint:tools/
*/
options results
parse ARG Port b
ADDRESS value Port
pp_showscreen
pp_DialogInit 250 90 "*Save*Gif*Brush*" 3
pp_String 0 50 12 150 16 "Name" 1 100 "ram:Noname.GIF"
pp_Getfile 1 205 13 0 "Save*Gif" 0 "ram:"
pp_Cycle 2 100 32 100 16 "Transparency" 1 "No|Color*0|Current*Bg" 0
pp_Dialog
rc=result
if rc=0 then
do
EXIT
end
pp_GetDialog 0
file=result
pp_GetDialog 2
option=result
if option=2 then
DO
pp_GetBpen
Bpen=result
END
if option=1 then
DO
Bpen=0
END
pp_asay 'Saving*GIF*file|Please*wait*...'
pp_Bsave 'ram:t/pptemp' 0
address COMMAND
if option=0 then
DO
'perfectpaint:tools/tapgif '||'ram:t/pptemp '||'"'||file||'"'
END
ELSE
DO
'perfectpaint:tools/tapgif '||'ram:t/pptemp '||'"'||file||'"'||' TRAN '||Bpen
END
'delete >nil: ram:t/pptemp'
ADDRESS value Port
pp_closeasay
end