background_image#

viewport.background_image(p0: str) int#

Specify the image file to be used as the background for the selected viewport(s).

Image file types supported are: xpm and bmp
Args:
p0:

‘filename’ the image file to use as the background

Examples:
ensight.viewport.select_begin(0)
ensight.viewport.background_type("image")
ensight.viewport.background_image("/tmp/mybackground.xpm")
Returns:

zero on success, non-zero on error