[][src]Trait embedded_graphics::image::Image

pub trait Image<'a>: Dimensions {
    fn new(imagedata: &'a [u8], width: u32, height: u32) -> Self;
}

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

Loading content...

Implementors

impl<'a, C> Image<'a> for Image16BPP<'a, C> where
    C: PixelColor
[src]

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]

impl<'a, C> Image<'a> for Image8BPP<'a, C> where
    C: PixelColor
[src]

fn new(imagedata: &'a [u8], width: u32, height: u32) -> Self[src]

Create a new 8BPP image with given data, width and height. Data length must equal width * height

Loading content...