Write the image to the open file object. See `.save()` if you have a filename. In general, you can only call this method once; after it has been called the first time the PNG image is written, the source data will have been streamed, and cannot be streamed a
(self, file)
| 1286 | w.write(fd, self.rows) |
| 1287 | |
| 1288 | def write(self, file): |
| 1289 | """Write the image to the open file object. |
| 1290 | |
| 1291 | See `.save()` if you have a filename. |
| 1292 | |
| 1293 | In general, you can only call this method once; |
| 1294 | after it has been called the first time the PNG image is written, |
| 1295 | the source data will have been streamed, and |
| 1296 | cannot be streamed again. |
| 1297 | """ |
| 1298 | |
| 1299 | w = Writer(**self.info) |
| 1300 | w.write(file, self.rows) |
| 1301 | |
| 1302 | |
| 1303 | class Reader: |