[−][src]Trait embedded_graphics::image::Image
Raw image trait
Required methods
fn new(imagedata: &'a [u8], width: u32, height: u32) -> Self
Create a new image with given pixel data, width and height
Implementors
impl<'a, C> Image<'a> for Image16BPP<'a, C> where
C: PixelColor,
[src]
C: PixelColor,
fn new(imagedata: &'a [u8], width: u32, height: u32) -> Self
[src]
Create a new 16BPP image with given data, width and height. Data length must equal
width * height * 2
impl<'a, C> Image<'a> for Image1BPP<'a, C> where
C: PixelColor,
[src]
C: PixelColor,
impl<'a, C> Image<'a> for Image8BPP<'a, C> where
C: PixelColor,
[src]
C: PixelColor,