Module png_encoder
Expand description
Encoding of images into the PNG format, with configurable filtering and compression.
Structs§
- Filter
Flag - Options
- PNG encoding options.
Functions§
- encode
- Encode the
srcpixels to thedststream.optionsmay 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
contextmust be provided so the pixels can be read before being encoded. For raster-backed images,contextcan beNone.optionsmay be used to control the encoding behavior. - encode_
pixmap - Returns the encoded data for the pixmap, or
Noneon failure.
Type Aliases§
- Comment
Deprecated