4 releases (2 breaking)
0.3.1 | Apr 19, 2020 |
---|---|
0.3.0 | Apr 19, 2020 |
0.2.0 | Apr 19, 2020 |
0.1.0 | Apr 4, 2020 |
#639 in Images
15KB
409 lines
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());
}
}
lib.rs
:
tim2
An image loader for TIM2 (.tm2) image files
Dependencies
~115KB