Skip to main content

render_png

Function render_png 

Source
pub fn render_png(capture: &Capture, size: u32) -> Option<Vec<u8>>
Expand description

Render capture as a size×size RGBA PNG. None when nothing is drawn (an empty document gets no thumbnail; consumers show their placeholder).