Skip to main content

Module png_encoder

Module png_encoder 

Expand description

Encoding of images into the PNG format, with configurable filtering and compression.

Structs§

FilterFlag
Options
PNG encoding options.

Functions§

encode
Encode the src pixels to the dst stream. options may be used to control the encoding behavior.
encode_image
Encode the provided image and return the resulting bytes. If the image was created as a texture-backed image on a GPU context, that context must be provided so the pixels can be read before being encoded. For raster-backed images, context can be None. options may be used to control the encoding behavior.
encode_pixmap
Returns the encoded data for the pixmap, or None on failure.

Type Aliases§

CommentDeprecated