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
//! Image object
//!
//! If the source image data is in BMP format, use [`ImageBMP`](struct.ImageBmp.html).
//!
//! If the source image data is a slice of raw bytes that represents a 1, 8 or 16 bits-per-pixel
//! (BPP) image, use [`Image1BPP`](type.Image1BPP.html), [`Image8BPP`](type.Image8BPP.html),
//! or [`Image16BPP`](type.Image16BPP.html) respectively.

mod image;
mod image16bpp;
mod image1bpp;
mod image8bpp;
#[cfg(feature = "bmp")]
mod image_bmp;
#[cfg(feature = "tga")]
mod image_tga;

pub use self::image::{Image, ImageFile};

pub use self::image16bpp::Image16BPP;
pub use self::image1bpp::Image1BPP;
pub use self::image8bpp::Image8BPP;
#[cfg(feature = "bmp")]
pub use self::image_bmp::ImageBmp;
#[cfg(feature = "tga")]
pub use self::image_tga::ImageTga;