addImgActor()

Add an image actor to the scene graph.

Usage

imgActor = vis.addImgActor( filename = None,
                                     image = None,
                                     position = [0.5,0.5],
                                     width = -1,
                                     height = -1,
                                     horAlignment = "CENTER",
                                     verAlignment = "BOTTOM" )

Parameters

fileName (string)
Image file name.
image (string)
Image to be added.
position (list)
Image actor position.
width (integer)
Image width.
height (integer)
Image height.
horAlignment (string)
Image horizontal alignment. Valid values are RIGHT, CENTER and LEFT.
verAlignment (string)
Image vertical alignment. Valid values are BOTTOM, TOP and HALF.

Return Value

imgActor (object)
The image actor.

Errors

None

Description

This routine adds an image actor to the scene graph. For example,
imgActor = vis.addImgActor( filename = "logo_med.jpg",
                                      position = [0.73,0.78,0.5],
                                      width = 300 ,
                                      height = 60 )