用于将 RGB/RGBA 图像保存为未压缩的 PNG 的简洁 C 函数。
A minimalistic C function for saving RGB/RGBA image into uncompressed PNG.
Copyright (C) 2017 Milo Yip. All rights reserved.
By default, svpng() function has the following declaration:
/*!
\brief Save a RGB/RGBA image in PNG format.
\param out Output stream (by default using file descriptor).
\param w Width of the image. (& buffer`, etc. |
| `SVPNG_PUT(u)` | `fputc(u, out)` | Output a byte into stream, e.g. `os.put(u)`, `buffer.push_back(u)`, etc. |暂无开放 Issues,或尚未同步最近议题。