image_encapsulated#

file.image_encapsulated(p0: str) int#

Turn on/off encapsulation for postscript output

Encapsulation should only be used when the resulting image file will be used as part of another document. Printers do not normally interpret encapsulated image files.
Args:
p0:

‘toggle’

  • ON

  • OFF

Examples:
ensight.file.image_format("postscript")
ensight.file.image_color_type("black&white")
ensight.file.image_file("/tmp/test_image")
ensight.file.image_orientation("landscape")
ensight.file.image_encapsulated("ON")
ensight.file.save_image()
Returns:

zero on success, non-zero on error