Functions

bool DecodePNGBlob(unsigned char const *data, size_t size, DecodedImage &out)
bool DecodePNGBlob(unsigned char const data, size_t size, DecodedImage& out)

Decode a PNG blob from memory into raw pixel data.

Parameters

data: Pointer to the PNG file bytes.

size: Number of bytes in data.

out: Receives the decoded pixel data on success.

Returns

true on success, false on failure (out.pixels will be NULL).