Luanti 5.16.0-dev
Loading...
Searching...
No Matches
png.h File Reference
#include <string>
#include "irrlichttypes.h"
Include dependency graph for png.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

std::string encodePNG (const u8 *data, u32 width, u32 height, s32 compression)

Function Documentation

◆ encodePNG()

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().

Here is the call graph for this function:
Here is the caller graph for this function: