Skip to content

travistrue2008/tim2-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

An image loader for TIM2 (.tm2) image files

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages