Decoder for PNG images.
This decoder has a dependency on the libpng library.
Used in engines:
◆ writePNG() [1/2]
Outputs a compressed PNG stream of the given input surface.
- Parameters
-
out | Stream to which to write the PNG image. |
input | The surface to save as a PNG image.. |
palette | The palette (in RGB888), if the source format has a bpp of 1. |
paletteCount | Number of colors in the palette (default: 256). |
◆ writePNG() [2/2]
Outputs a compressed PNG stream of the given input surface.
- Parameters
-
out | Stream to which to write the PNG image. |
input | The surface to save as a PNG image.. |
palette | The palette if the source format has a bpp of 1. |