Model.jpegfilenamed#

Model.jpegfilenamed(filename)#

Captures the graphics area to a JPEG image with the specified name.

The color and background settings can be specified using the Model.graphicsfilecolor() function.

Parameters:

filename (hwString) – The full path and file name of the image.

Example#

Capture the graphics area to a JPEG image named “C:/my_images/model.jpg”#
import hm
import hm.entities as ent

model = hm.Model()

model.jpegfilenamed(filename="C:/my_images/model.jpg")