Skip to content

Latest commit

 

History

History
30 lines (20 loc) · 905 Bytes

File metadata and controls

30 lines (20 loc) · 905 Bytes

Library for reading and writing PCX images in Rust

Example usage:

let mut reader = pcx::Reader::from_file("test-data/marbles.pcx").unwrap();
println!("width = {}, height = {}", reader.width(), reader.height());

let mut buffer = vec![0; reader.width() as usize * reader.height() as usize * 3];
reader.read_rgb_pixels(&mut buffer).unwrap();

See API documentation for more info.

License

This project is licensed under either of

at your option.

Note that these licenses do not cover the test images (test-data folder).