| Crates.io | rimg |
| lib.rs | rimg |
| version | 0.1.1 |
| created_at | 2020-05-27 23:02:12.169307+00 |
| updated_at | 2020-05-28 23:30:09.00644+00 |
| description | RImg aims to be a Rust implementation of CImg, the C++ Image Template Image Processing Toolkit |
| homepage | |
| repository | https://framagit.org/floreal/rimg/ |
| max_upload_size | |
| id | 246818 |
| size | 18,280 |
RImg aims to be a Rust implementation of CImg, the C++ Image Template Image Processing Toolkit.
Some enhancement from Rust shall also be brought by rust:
Result<T, Err> type,
while C++ allows throwing exception which Rust do not implement this paradigmOption<T> type instead
of C++ NULL pointerFor now on this crate is very far from being useful, yet if you want to include it, to your dependencies, just edit your Cargo.toml file by adding this:
[dependencies]
rimg = ">=0.1"
then you may use it that way:
extern crate rimg;
use rimg::RImg;
fn main() {
let img = RImg::new(128, 256, 1, 3, 0);
println!("image size: {}", img.size());
}
Latest documentation shall be found at Docs.rs.
All contribution are welcome. But for now the priority would be to reach CImg Features.
Read CONTRIBUTING.md file for more information.
RImg is a free, open-source library distributed under the LGPL-V3.0 license terms.