pub struct Bilevel;Expand description
8-bit bilevel: one byte per pixel, 0 = black and non-zero = white. Distinct from Gray8
so a grayscale buffer cannot be mistaken for a 1-bit image.
Trait Implementations§
impl Copy for Bilevel
impl Eq for Bilevel
Source§impl Pixel for Bilevel
impl Pixel for Bilevel
Source§const MODEL: ColorModel = ColorModel::Bilevel
const MODEL: ColorModel = ColorModel::Bilevel
The colour interpretation of those samples.
Source§const BYTES_PER_PIXEL: usize = _
const BYTES_PER_PIXEL: usize = _
Bytes one pixel occupies in an interleaved buffer (
CHANNELS * size_of::<Sample>()).impl StructuralPartialEq for Bilevel
Auto Trait Implementations§
impl Freeze for Bilevel
impl RefUnwindSafe for Bilevel
impl Send for Bilevel
impl Sync for Bilevel
impl Unpin for Bilevel
impl UnsafeUnpin for Bilevel
impl UnwindSafe for Bilevel
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more