tim2/
lib.rs

1//! # tim2
2//! 
3//! An image loader for TIM2 (.tm2) image files
4
5///
6/// ```
7/// fn main() {
8///     let image = tim2::load("../assets/test.tm2").unwrap();
9/// 
10///     /* print the header info for each frame found */
11///     for (i, frame) in image.frames().iter().enumerate() {
12///         println!("frame[{}]: <{}  {}>", i, frame.width(), frame.height());
13///     }
14/// }
15/// ```
16
17mod common;
18mod error;
19mod frame;
20mod image;
21mod pixel;
22
23pub use error::*;
24pub use frame::*;
25pub use image::*;
26pub use pixel::*;