MCPcopy Index your code
hub / github.com/csev/py4e / save

Method save

code/graphics/graphics.py:956–964  ·  view source on GitHub ↗

Saves the pixmap image to filename. The format for the save image is determined from the filname extension.

(self, filename)

Source from the content-addressed store, hash-verified

954 return Pixmap(self.image.copy())
955
956 def save(self, filename):
957 """Saves the pixmap image to filename.
958 The format for the save image is determined from the filname extension.
959
960 """
961
962 path, name = os.path.split(filename)
963 ext = name.split(".")[-1]
964 _tkExec(self.image.write, filename, format=ext)
965
966
967def color_rgb(r,g,b):

Callers 6

jquery-ui.min.jsFile · 0.45
jquery-ui.min.jsFile · 0.45
jquery-ui.min.jsFile · 0.45
cloudSpriteFunction · 0.45
Chart.bundle.jsFile · 0.45
cloudSpriteFunction · 0.45

Calls 2

_tkExecFunction · 0.85
splitMethod · 0.80

Tested by

no test coverage detected