pub fn write_png_file( path: impl AsRef<Path>, width: u32, height: u32, pixels: &[u8], ) -> Result<usize, HeadlessError>
Writes a PNG file containing pixels and returns the byte length written.
pixels