File: imagefill.phtml

package info (click to toggle)
wims 2%3A4.29a%2Bdfsg1-3
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 185,704 kB
  • sloc: xml: 366,687; javascript: 120,570; ansic: 62,341; java: 62,170; sh: 7,744; perl: 3,937; yacc: 3,217; cpp: 1,915; lex: 1,805; makefile: 1,084; lisp: 914; pascal: 601; python: 520; php: 318; asm: 7
file content (22 lines) | stat: -rw-r--r-- 890 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
:signification
 Put dragfill or clickfill fields into a big image. To be used in the
 statement of an OEF exercise. 
 
:example
<span class="wims_help_example">Example</span>
 <pre>
\special{imagefill \imagedir/myphoto.jpg,450x350,40x40
reply 1,120x250
reply 3,300x50
reply 4,10x15
}
</pre>
 This example puts a big image (<span class="tt wims_fname">\imagedir/myphoto.jpg</span>) in the
 statement, of size
 450x350, with 3 embedded drag-and-drop fields of size 40x40. The 3 fields
 are respectively answers 1,3 and 4 (which must be of clickfill or dragfill
 type), and at respective positions 120x250, 300x50, 10x15 within the big
 image.
 <p> The big image will be stretched to fit exactly the specified size.
 <p> It is possible to have multiple answers. Add a third integer parameter to the size
 <span class="tt wims_code_words">reply 1,120x250x4</span> will show a field of length 4.