insightdock::charts::write_jpeg

Write an RGBA buffer to a JPEG file.

Synopsis

Declared in <insightdock/png_writer.h>
[[visibility]]
bool
write_jpeg(
    std::string const& path,
    ImageBuffer const& img,
    int quality = 90);

Return Value

true on success.

Parameters

Name Description
path Output file path.
img Source buffer (alpha composited onto white).
quality JPEG quality 1–100 (default 90).

Created with MrDocs