Function png_framing::save
[−]
[src]
pub fn save<P, T>(image: &Chunky<Rgba, T>, path: P) -> Result<(), Error> where
P: AsRef<Path>,
T: AsRef<[u8]>,
Saves the image to the given file path as a PNG.
Any existing file at the path will be overwritten. This is basically the same as encoding the image and writing it yourself, but is a lot more convenient.