insightdock::charts::encode_png

Encode an RGBA buffer to PNG bytes in memory.

Synopsis

Declared in <insightdock/png_writer.h>
[[visibility]]
std::vector<uint8_t>
encode_png(ImageBuffer const& img);

Return Value

PNG file bytes, or empty vector on failure.

Parameters

Name Description
img Source buffer.

Created with MrDocs