Function dimage::png::enc::encode_file [] [src]

pub fn encode_file<I, P>(image: &I, path: P) -> Result<()> where
    I: Image<Bounds = Size2<Coord>, Index = Vec2<Coord>>,
    I::Pixel: Pixel,
    P: AsRef<Path>, 

Encodes an image as a PNG file.