home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
AmigActive 20
/
AACD20.BIN
/
AACD
/
Graphics
/
PerfectPaint
/
rexx
/
bridge
/
MkAnimDCTV_Pict.rx
< prev
next >
Wrap
Text File
|
2001-03-08
|
888b
|
57 lines
/* arexx Script
Make anim with pictures
*/
options results
parse ARG Port b
ADDRESS value Port
pp_AvoidRefresh
pp_AnimGui 1
if result<0 then
do
EXIT
end
pp_AskMultiFile 'Load*Pictures'
count=result
pp_AliasOn
file="Ram:MultiFile"
IF OPEN("g",file,"read") then DO
file=READLN("g")
pp_New 352 282 9
pp_MakeAnim count
pp_CountFrames
count=result
Do i=1 to count-1
file=READLN("g")
pp_ProgressText 'DCTVtoILBM*#'||i
ADDRESS command;'C:ReadDCTV '||file||' ram:DCTVtemp'
ADDRESS value Port
pp_ProgressText 'Ld*Brush*#'||i
pp_Bload 'ram:DCTVtemp'
pp_GetWidthB
w=result
pp_GetHeightB
h=result
pp_ScaleBrush w/2 h
IF w=0 then DO
EXIT
END
x=w/4
y=h/2
pp_Plot x y
pp_FastNextFrame
END
CALL close(file)
pp_GotoFrame 1
END
pp_FreeBrush
pp_PermitRefresh
ADDRESS Command;'delete ram:DCTVtemp'