1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
//! # tim2
//! 
//! An image loader for TIM2 (.tm2) image files

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

mod common;
mod error;
mod frame;
mod image;
mod pixel;

pub use error::*;
pub use frame::*;
pub use image::*;
pub use pixel::*;