Function write_screenshot

Source
pub fn write_screenshot(
    output_path: &str,
    img_data: Vec<u8>,
) -> Result<(), Error>
Expand description

Write image data to a file. A simple wrapper around std::fs::write().