Skip to main content

render_png

Function render_png 

Source
pub fn render_png(tree: &Tree, px: u32) -> Result<Vec<u8>, String>
Expand description

Render the tree into a px×px PNG, scaled uniformly to fit and centered. Transparent background; the caller composites/flattens where a format demands opacity (e.g. the iOS 1024 icon).