encode overloads
<insightdock/export.h>Encode a chart to memory.
static
ChartResult<std::vector<uint8_t>>
encode(
Chart& chart,
ExportOptions const& opts = {});
» more...
Encode a const chart without modifying it.
static
ChartResult<std::vector<uint8_t>>
encode(
Chart const& chart,
ExportOptions const& opts = {});
» more...
ChartResult holding the encoded bytes on success, or a ChartError on failure (never returns an empty vector on success).
| Name | Description |
|---|---|
| chart | Chart to render. |
| opts | Format and quality options. |