Kaya 0.5.2 reference for HTMLDocument::addImage

List of functions and data types in HTMLDocument

ElementTree addImage(ElementTree block, ImageData image)

Arguments

Usage

Append the image to the block. See the ImageData 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)));

Related

kaya@kayalang.org | Last modified 29 November 2011 | Supported by Durham CompSoc | Powered by Kaya