Skip to content
themixray edited this page Dec 11, 2021 · 6 revisions

Load

Load image.

pygwin.image.load(path)
  • path Path to the image.

Returns surface/list

Save

Save surface to the image.

pygwin.image.save(surface, dest)
  • surface Surface.
  • dest Destination path.

Returns None

To bytes

Surface to bytes.

pygwin.image.toBytes(surface)
  • surface Surface.

Returns bytes

From bytes

Surface from bytes.

pygwin.image.fromBytes(bytes)
  • bytes Bytes.

Returns surface

Clone this wiki locally