Image
(rows, info)¶A PNG image. You can create an Image
object from
an array of pixels by calling png.from_array()
. It can be
saved to disk with the save()
method.
Constructor:
__init__
(rows, info)¶Note
The constructor is not public. Please do not call it.
Methods:
save
(file)Save the image to file.
Image.
save
(file)¶Save the image to file. If file looks like an open file descriptor then it is used, otherwise it is treated as a filename and a fresh file is opened.
In general, you can only call this method once; after it has been called the first time and the PNG image has been saved, the source data will have been streamed, and cannot be streamed again.