//! Image drawables.
//!//! Image drawables can be created for raw bitmap data and images in BMP and TGA
//! format.
modimage;#[cfg(feature ="bmp")]modimage_bmp;#[cfg(feature ="tga")]modimage_tga;pubuseself::image::{Image, ImageBE, ImageLE};#[cfg(feature ="bmp")]pubuseself::image_bmp::ImageBmp;#[cfg(feature ="tga")]pubuseself::image_tga::ImageTga;/// Image file trait.
pubtraitImageFile<'a>: crate::Dimensions + Sized {/// Create a new image with given input file
////// The input file is expected to be of a particular format (BMP, TGA, etc) and contain file
/// metadata like width/height and pixel data. Because parsing may fail, this returns a
/// `Result<Self, ()>`.
fnnew(filedata:&'a [u8])->Result<Self, ()>;/// Get the width in pixels of an image
fnwidth(&self)->u32;/// Get the height in pixels of an image
fnheight(&self)->u32;}