Provided by: kaya_0.4.4-6ubuntu3_amd64
HTMLDocument::addImage - Add an image
ElementTree addImage( ElementTree block, ImageData image )
block The block to add to image The image to add
Append the image to the block. See the HTMLDocument.ImageData (3kaya) documentation for more information about image definitions. Images require both a source and alternative text, with the best way to select the alternative text being to consider the text you would use in this context if no image was available. (Many decorative images will therefore have "" as their alternative text) p = addParagraph(parent,"Sponsored by "); logo = addImage(p,ImageData("logo.jpg","MegaCorp",Specified(100,18)));
Kaya standard library by Edwin Brady, Chris Morris and others (firstname.lastname@example.org). For further information see http://kayalang.org/
The Kaya standard library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License (version 2.1 or any later version) as published by the Free Software Foundation.