pub fn rasterize_document(doc: &SvgDocument, w: u32, h: u32) -> Option<Pixmap>Expand description
Rasterize doc into a w×h pixmap with the web’s <img> behavior for
SVG sources: uniform scale, xMidYMid meet centering — the document’s
intrinsic aspect is letterboxed into the target box, never stretched.
None on a zero-sized target.