[−][src]Trait embedded_graphics::image::ImageFile
Image trait
Required methods
fn new(filedata: &'a [u8]) -> Result<Self, ()>
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, ()>
.
fn width(&self) -> u32
Get the width in pixels of an image
fn height(&self) -> u32
Get the height in pixels of an image