Rev 8404 | Rev 8408 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
7622 | bpr | 1 | !if $wims_read_parm!=$empty |
2 | !set parms=$wims_read_parm |
||
3 | !set parms=!replace internal $ $ by $\ |
||
4 | $ in $parms |
||
5 | !set size=!line 1 of $parms |
||
6 | !distribute items $size into sx,sy |
||
7 | !set ppm=!line 2 to -1 of $parms |
||
8 | !else |
||
9 | !if $parms=$empty |
||
10 | !exit |
||
11 | !endif |
||
12 | !distribute items $parms into sx,sy |
||
13 | !set ppm=!item 3 to -1 of $parms |
||
14 | !endif |
||
15 | |||
8404 | bpr | 16 | !set ppm=!replace internal $ $ by $\ |
17 | $ in $ppm |
||
8400 | bpr | 18 | |
8407 | bpr | 19 | !if copy isin $ppm or imagefill isin $ppm |
8404 | bpr | 20 | !set line_cnt=!linecnt $ppm |
21 | !for l_=1 to $line_cnt |
||
22 | !set line=!line $l_ of $ppm |
||
8407 | bpr | 23 | !if copy isin $line or imagefill isin $line |
8404 | bpr | 24 | !set im=!item -1 of $line |
25 | !if / notin $im |
||
26 | !set ppm=!replace line number $l_ by $(line[1..-2]),\filedir/$im in $ppm |
||
27 | !endif |
||
28 | !endif |
||
29 | !next |
||
30 | !endif |
||
31 | |||
7622 | bpr | 32 | !for pm in ppm, sx, sy |
33 | !set $pm=!slashsubst $($pm) |
||
34 | !next pp |
||
8404 | bpr | 35 | |
7622 | bpr | 36 | !set pp=!trim $ppm |
37 | |||
38 | !set pp=!line 1 to -1 of $pp |
||
39 | !set pp=!translate internal $ $ to $\ |
||
40 | $ in $pp |
||
41 | !set pp=!trim $pp |
||
42 | |||
43 | !set canvasdraw_out=!exec canvasdraw\ |
||
44 | size $sx,$sy\ |
||
45 | $pp |
||
46 | |||
47 | $canvasdraw_out |