Skip to main content

save_png

Function save_png 

Source
fn save_png(
    taken: &Screenshot,
    folder: &Path,
    name: &str,
) -> Result<PathBuf, ScreenshotError>
Expand description

Write taken as a PNG called name in folder, which is made if it is not there, and say where it is. The pixels are written as they came, transparency included.