Type Alias embedded_graphics::image::ImageRawLE
source · pub type ImageRawLE<'a, C> = ImageRaw<'a, C, LittleEndian>;
Expand description
Image with little endian data.
Aliased Type§
struct ImageRawLE<'a, C> { /* private fields */ }
Implementations
source§impl<'a, C, BO> ImageRaw<'a, C, BO>
impl<'a, C, BO> ImageRaw<'a, C, BO>
sourcepub const fn new(data: &'a [u8], width: u32) -> Self
pub const fn new(data: &'a [u8], width: u32) -> Self
Creates a new image.
Only the width of the image needs to be specified. The height of the image will be calculated based on the length of the given image data. If the length of the image data isn’t an integer multiple of the data length for a single row the last partial row will be ignored.
Trait Implementations
source§impl<C, BO> OriginDimensions for ImageRaw<'_, C, BO>
impl<C, BO> OriginDimensions for ImageRaw<'_, C, BO>
impl<'a, C, BO> Eq for ImageRaw<'a, C, BO>
impl<'a, C, BO> StructuralEq for ImageRaw<'a, C, BO>
impl<'a, C, BO> Copy for ImageRaw<'a, C, BO>
source§impl<'a, C, BO> PartialOrd for ImageRaw<'a, C, BO>
impl<'a, C, BO> PartialOrd for ImageRaw<'a, C, BO>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl<'a, C, BO> PartialEq for ImageRaw<'a, C, BO>
impl<'a, C, BO> PartialEq for ImageRaw<'a, C, BO>
source§impl<'a, C, BO> ImageDrawable for ImageRaw<'a, C, BO>where
C: PixelColor + From<<C as PixelColor>::Raw>,
BO: ByteOrder,
RawDataSlice<'a, C::Raw, BO>: IntoIterator<Item = C::Raw>,
impl<'a, C, BO> ImageDrawable for ImageRaw<'a, C, BO>where
C: PixelColor + From<<C as PixelColor>::Raw>,
BO: ByteOrder,
RawDataSlice<'a, C::Raw, BO>: IntoIterator<Item = C::Raw>,
source§impl<'a, C, BO> GetPixel for ImageRaw<'a, C, BO>where
C: PixelColor + From<<C as PixelColor>::Raw>,
BO: ByteOrder,
RawDataSlice<'a, C::Raw, BO>: IntoIterator<Item = C::Raw>,
impl<'a, C, BO> GetPixel for ImageRaw<'a, C, BO>where
C: PixelColor + From<<C as PixelColor>::Raw>,
BO: ByteOrder,
RawDataSlice<'a, C::Raw, BO>: IntoIterator<Item = C::Raw>,
impl<'a, C, BO> StructuralPartialEq for ImageRaw<'a, C, BO>
source§impl<'a, C, BO> Ord for ImageRaw<'a, C, BO>
impl<'a, C, BO> Ord for ImageRaw<'a, C, BO>
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more