lodepng 2.1.2

Reading and writing PNG files without system dependencies. Pure Rust port of LodePNG.
Documentation
1
2
3
4
5
6
7
8
9
extern crate lodepng;

fn main() {
    match lodepng::decode32_file("tests/test.png") {
        Ok(image) => println!("Decoded image {} x {} and the first pixel's value is {}",
                                image.width, image.height, image.buffer[0]),
        Err(reason) => println!("Could not load, because: {}", reason),
    }
}