Subversion Repositories wimsdev

Rev

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
8407 bpr 18
!if copy isin $ppm or imagefill isin $ppm
8404 bpr 19
  !set line_cnt=!linecnt $ppm
20
  !for l_=1 to $line_cnt
21
    !set line=!line $l_ of $ppm
8407 bpr 22
    !if copy isin $line or imagefill isin $line
8404 bpr 23
      !set im=!item -1 of $line
24
      !if / notin $im
25
        !set ppm=!replace line number $l_ by $(line[1..-2]),\filedir/$im in $ppm
26
      !endif
27
    !endif
28
   !next
29
!endif
30
 
7622 bpr 31
!for pm in ppm, sx, sy
32
 !set $pm=!slashsubst $($pm)
33
!next pp
8400 bpr 34
 
7622 bpr 35
!set pp=!trim $ppm
36
 
37
!set pp=!line 1 to -1 of $pp
38
!set pp=!translate internal $   $ to $\
39
$ in $pp
40
!set pp=!trim $pp
41
 
42
!set canvasdraw_out=!exec canvasdraw\
43
size $sx,$sy\
44
$pp
45
 
46
$canvasdraw_out