Saves the pixmap image to filename. The format for the save image is determined from the filname extension.
(self, filename)
| 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 | |
| 967 | def color_rgb(r,g,b): |
no test coverage detected