Subversion Repositories wimsdev

Rev

Rev 8404 | Rev 8408 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

  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.  
  16. !set ppm=!replace internal $    $ by $\
  17. $ in $ppm
  18. !if copy isin $ppm or imagefill isin $ppm
  19.   !set line_cnt=!linecnt $ppm
  20.   !for l_=1 to $line_cnt
  21.     !set line=!line $l_ of $ppm
  22.     !if copy isin $line or imagefill isin $line
  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.  
  31. !for pm in ppm, sx, sy
  32.  !set $pm=!slashsubst $($pm)
  33. !next pp
  34.  
  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
  47.