Go to the source code of this file.
Functions | |
std::string | encodePNG (const u8 *data, u32 width, u32 height, s32 compression) |
std::string encodePNG | ( | const u8 * | data, |
u32 | width, | ||
u32 | height, | ||
s32 | compression ) |
References COLOR_GRAY, COLOR_RGB, COLOR_RGBA, compressZlib(), reduceColor(), writeChunk(), writeU32(), and writeU8().
Referenced by ModApiUtil::l_encode_png().