home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Format 127
/
af127a.adf
/
PerfectPaint.lzx
/
PerfectPaint
/
rexx
/
general
/
LoadADPro_Brush.rx
< prev
next >
Wrap
Text File
|
1999-06-17
|
782b
|
49 lines
/* LoadAdpro Brush*/
options results
parse ARG Port b
IF ~SHOW('P','ADPro') THEN
DO
ADDRESS value Port
pp_Warn "Can't*locate*ADPro"
EXIT
END
ADDRESS value Port
pp_GetDepth
a=2**result
pp_Psave 'ram:t/ppptemp'
pp_DialogInit 250 90 "*Load*ADPro*Brush*" 1
pp_Cycle 0 100 20 100 16 "Dithering" 1 "No|Floyd" 0
pp_Dialog
rc=result
if rc=0 then
do
EXIT
end
pp_GetDialog 0
d=result
ADDRESS 'ADPro'
ADPRO_TO_FRONT
AVAIL_MODES_ONLY OFF
PLOAD 'ram:t/ppptemp'
PSTATUS "LOCKED"
SFORMAT "IFF"
SCREEN_TYPE "NONINTERLACED"
RENDER_TYPE a
DITHER d
EXECUTE
SAVE 'ram:t/pptemp' "IMAGE"
ADDRESS value Port
pp_ShowScreen
pp_BLoad 'ram:t/pptemp'
ADDRESS COMMAND
'delete >nil: ram:t/pptemp'
'delete >nil: ram:t/ppptemp'