Skip to main content

render_gray

Function render_gray 

Source
pub fn render_gray(
    width: usize,
    height: usize,
    pixels: &[u8],
    options: RenderOptions,
) -> Result<Raster, Error>
Expand description

Render row-major 8-bit grayscale: zero is black and 255 is white.