Struct tinybmp::RawBmp [−][src]
pub struct RawBmp<'a> { /* fields omitted */ }
Expand description
A BMP-format bitmap.
Implementations
impl<'a> RawBmp<'a>
[src]
impl<'a> RawBmp<'a>
[src]pub fn from_slice(bytes: &'a [u8]) -> Result<Self, ParseError>
[src]
pub fn from_slice(bytes: &'a [u8]) -> Result<Self, ParseError>
[src]Create a bitmap object from a byte slice.
The created object keeps a shared reference to the input and does not dynamically allocate memory.
In contrast to the from_slice
constructor no color type needs to be specified when
calling this method. This will disable all functions that requires a specified color type,
like the pixels
method.
pub fn image_data(&self) -> &'a [u8]
[src]
pub fn image_data(&self) -> &'a [u8]
[src]Returns a slice containing the raw image data.
Trait Implementations
impl<'a> Ord for RawBmp<'a>
[src]
impl<'a> Ord for RawBmp<'a>
[src]impl<'a> PartialOrd<RawBmp<'a>> for RawBmp<'a>
[src]
impl<'a> PartialOrd<RawBmp<'a>> for RawBmp<'a>
[src]fn partial_cmp(&self, other: &RawBmp<'a>) -> Option<Ordering>
[src]
fn partial_cmp(&self, other: &RawBmp<'a>) -> Option<Ordering>
[src]This method returns an ordering between self
and other
values if one exists. Read more
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]This method tests less than (for self
and other
) and is used by the <
operator. Read more
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more