1HTMLDocument.addImage(3kaya) Kaya module referenceHTMLDocument.addImage(3kaya)
2
3
4
6 HTMLDocument::addImage - Add an image
7
9 ElementTree addImage( ElementTree block, ImageData image )
10
12 block The block to add to
13
14 image The image to add
15
17 Append the image to the block. See the HTMLDocument.ImageData (3kaya)
18 documentation for more information about image definitions. Images
19 require both a source and alternative text, with the best way to select
20 the alternative text being to consider the text you would use in this
21 context if no image was available. (Many decorative images will thereā
22 fore have "" as their alternative text)
23
24
25 p = addParagraph(parent,"Sponsored by ");
26 logo = addImage(p,ImageData("logo.jpg","MegaCorp",Specified(100,18)));
27
29 Kaya standard library by Edwin Brady, Chris Morris and others
30 (kaya@kayalang.org). For further information see http://kayalang.org/
31
33 The Kaya standard library is free software; you can redistribute it
34 and/or modify it under the terms of the GNU Lesser General Public
35 License (version 2.1 or any later version) as published by the Free
36 Software Foundation.
37
39 HTMLDocument.ImageData (3kaya)
40
41
42
43Kaya December 2010 HTMLDocument.addImage(3kaya)