#
cute_png
This module is optional. Set option PK_BUILD_MODULE_CUTE_PNG to ON in your CMakeLists.txt to enable it.
Wraps cute_png.h for PNG image loading and saving.
#
Source code
from array2d import array2d
from vmath import color32
class Image:
@property
def width(self) -> int: ...
@property
def height(self) -> int: ...
def __new__(cls, width: int, height: int) -> "Image": ...
@staticmethod
def from_bytes(data: bytes) -> "Image": ...
def setpixel(self, x: int, y: int, color: color32) -> None: ...
def getpixel(self, x: int, y: int) -> color32: ...
def clear(self, color: color32) -> None: ...
def to_rgb565_bytes(self) -> bytes: ...
def to_png_bytes(self) -> bytes: ...
def loads(data: bytes) -> array2d[color32]: ...
def dumps(image: array2d[color32]) -> bytes: ...