tim2

Crates.iotim2
lib.rstim2
version0.3.1
sourcesrc
created_at2020-04-04 08:20:42.997162
updated_at2020-04-19 20:12:23.897533
descriptionAn image loader for TIM2 (.tm2) image files
homepage
repositoryhttps://www.github.com/travistrue2008/tim2-rs
max_upload_size
id226167
size14,982
Travis True (travistrue2008)

documentation

https://docs.rs/tim2

README

tim2-rs

An image loader for TIM2 (.tm2) image files

Usage

Add the crate to your project's Cargo.toml:

[dependencies]
tim2 = "0.1.0"

Here's a basic example of loading the file:

use tim2;

fn main() {
    let image = tim2::load("./assets/test.tm2").unwrap();

    /* print the header info for each frame found */
    for (i, frame) in image.frames().iter().enumerate() {
        println!("frame[{}]: <{}  {}>", i, frame.width(), frame.height());
    }
}
Commit count: 0

cargo fmt