use drawable::Dimensions;
mod image16bpp;
mod image1bpp;
mod image8bpp;
mod image_bmp;
pub trait Image<'a>: Dimensions {
fn new(imagedata: &'a [u8], width: u32, height: u32) -> Self;
}
pub trait ImageFile<'a>: Dimensions + Sized {
fn new(filedata: &'a [u8]) -> Result<Self, ()>;
fn width(&self) -> u32;
fn height(&self) -> u32;
}
pub use self::image16bpp::Image16BPP;
pub use self::image1bpp::Image1BPP;
pub use self::image8bpp::Image8BPP;
pub use self::image_bmp::ImageBmp;