render#

Session.render(width: int, height: int, aa: int = 1) bytes#

Render the current EnSight scene and return a PNG image.

Parameters:
widthint

Width of the rendered image in pixels.

heightint

Height of the rendered image in pixels.

aaint, optional

Number of antialiasing passes to use. The default is 1.

Returns:
obj

PNG image as a bytes object.

Examples

>>> data = session.render(1920, 1080, aa=4)
>>> with open("file.png", "wb") as fp:
>>> fp.write(data)