Skip to main content

element_to_png

Function element_to_png 

Source
pub fn element_to_png(
    element: &ChartElement,
    width: u32,
    height: u32,
    density: u32,
) -> Result<Vec<u8>, RenderError>
Expand description

Render a pre-built ChartElement tree to PNG bytes.

Use this when you already have a ChartElement (e.g. from a custom rendering pipeline).