image_window_xy#

file.image_window_xy(p0: int, p1: int) int#

Sets the image width and height if the user has specified a user_defined image size.

For interactive processing width and height are limited to the size of the managed display area. For batch rendering width and height are limited to 15360 x 4096.
If the aspect ratio of EnSight’s graphics area does not match the specified values the resulting image will not match what is currently displayed. To avoid this problem the specified aspect ratio (width/height) must match what is currently in use. To find the currently in use values enter “test: size_of_window” in the command dialog. The currently in use values will be printed in the EnSight shell window.
Args:
p0:

‘width’ pixels in x direction

p1:

‘height’ pixels in y direction

Examples:
ensight.file.image_format("sgi_rgb")
ensight.file.image_window_size("user_defined")
ensight.file.image_window_xy(800,600)
ensight.file.image_file("/tmp/test_image")
ensight.file.save_image()
Returns:

zero on success, non-zero on error