image_convert#

file.image_convert(p0: str) int#

Change black backgrounds to white and change any white objects (geometry, plotters, annotations, etc.) to black.

Args:
p0:

‘toggle’

  • ON

  • OFF

Examples:
ensight.file.image_format("sgi_rgb")
ensight.file.image_file("/tmp/test_image")
ensight.file.image_convert("ON")
ensight.file.save_image()
ensight.file.image_convert("OFF")
Returns:

zero on success, non-zero on error