Skip to main content

render_png

Function render_png 

Source
pub fn render_png(spec: &PlotSpec) -> Result<Vec<u8>, RenderError>
Expand description

Render spec as a PNG image.

ยงErrors

When the spec is invalid, the bundled font cannot load, or PNG encoding fails.