ElementTree addImage(ElementTree block, ImageData image)
Arguments
block: The block to add toimage: The image to add
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)));