tim2 0.3.1

An image loader for TIM2 (.tm2) image files
Documentation
  • Coverage
  • 13.64%
    3 out of 22 items documented2 out of 2 items with examples
  • Size
  • Source code size: 14.98 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 4.47 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 11s Average build duration of successful builds.
  • all releases: 11s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Repository
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • travistrue2008

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