Skip to main content

rasterize

Function rasterize 

Source
pub fn rasterize(prims: &[Prim], w: u32, h: u32, background: Rgba) -> Vec<u8> ⓘ
Expand description

Rasterises primitives to straight RGBA8 (w*h*4 bytes) over background. Empty for a zero or oversized image. Text primitives are skipped.