Write image to file FILENAME in FORMAT starting from position FROM_COORDS.
(self, filename, format=None, from_coords=None)
| 4204 | # XXX read |
| 4205 | |
| 4206 | def write(self, filename, format=None, from_coords=None): |
| 4207 | """Write image to file FILENAME in FORMAT starting from |
| 4208 | position FROM_COORDS.""" |
| 4209 | args = (self.name, 'write', filename) |
| 4210 | if format: |
| 4211 | args = args + ('-format', format) |
| 4212 | if from_coords: |
| 4213 | args = args + ('-from',) + tuple(from_coords) |
| 4214 | self.tk.call(args) |
| 4215 | |
| 4216 | def transparency_get(self, x, y): |
| 4217 | """Return True if the pixel at x,y is transparent.""" |