Skip to main content

write_png_file

Function write_png_file 

Source
pub fn write_png_file(
    path: impl AsRef<Path>,
    width: u32,
    height: u32,
    pixels: &[u8],
) -> Result<usize, HeadlessError>
Expand description

Writes a PNG file containing pixels and returns the byte length written.