addImage()

Add an image to the report.

Usage

addImage( fileName, justify = 'center',
                    scale = 1, hasCaption = False )

Parameters

fileName (string)
Image file name.
justify (string)
Image justification. Valid values are flushleft, flushright and center.
scale (integer)
Image scale.
hasCaption (boolean)
If True leave the justify block open for adding the caption.

Return Value

None

Description

This routine adds a figure to the report. The figure fileName, justification, caption and scale are given by fileName, justify, caption and scale. If hasCaption is True, the justify block is left open for adding the caption. For example,
fname = vis.saveImage( width=600, height=400 )
rep.addImage( fname, "center", 1.0 )