Jazz2::AssetPacker::PngCodec class

Minimal PNG reader and writer.

The game has a PNG decoder of its own, but it lives in the renderer, which this tool deliberately doesn't link - so it carries its own. It reads the 8-bit non-interlaced images an editor produces (greyscale, palette, RGB and RGBA, with or without alpha) and writes RGBA, which is enough for both ends of the font round trip.

Public static functions

static auto Read(StringView path, Image& image) -> bool
Reads an image, expanding whatever it finds to RGBA.
static auto Write(StringView path, const Image& image) -> bool
Writes an RGBA image.