rimg

Crates.iorimg
lib.rsrimg
version0.1.1
sourcesrc
created_at2020-05-27 23:02:12.169307
updated_at2020-05-28 23:30:09.00644
descriptionRImg aims to be a Rust implementation of CImg, the C++ Image Template Image Processing Toolkit
homepage
repositoryhttps://framagit.org/floreal/rimg/
max_upload_size
id246818
size18,280
Floréal Toumikian (floreal)

documentation

README

RImg - Rust Image Template Image Processing Toolkit

pipeline status

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:

  • Return Result<T, Err> type, while C++ allows throwing exception which Rust do not implement this paradigm
  • Return Option<T> type instead of C++ NULL pointer

Usage

For 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());
}

Documentation

Latest documentation shall be found at Docs.rs.

Contributing

All contribution are welcome. But for now the priority would be to reach CImg Features.

Read CONTRIBUTING.md file for more information.

License

RImg is a free, open-source library distributed under the LGPL-V3.0 license terms.

Commit count: 0

cargo fmt