image_to_printer#

file.image_to_printer(p0: str) int#

Specifies if the image should be printed directly to a printer.

If flag is set to OFF, the other choice, printing the image to a disk file should be specified. If ON, the “file: image_printer_command” should be specified.
Args:
p0:

‘toggle’

  • ON

  • OFF

Examples:
ensight.file.image_format("jpeg")
ensight.file.image_to_file("OFF")
ensight.file.image_to_printer("ON")
ensight.file.image_printer_command("lpr -Pprinter")
ensight.file.save_image()
Returns:

zero on success, non-zero on error