pub fn write_screenshot( output_path: &str, img_data: Vec<u8>, ) -> Result<(), Error>
Write image data to a file. A simple wrapper around std::fs::write().