pub struct BitImage {
pub width: u32,
pub height: u32,
pub row_bytes: usize,
pub bits: Vec<u8>,
}Expand description
A one-bit-per-pixel image, packed MSB-first with each row starting on a byte boundary.
Fields§
§width: u32Width in pixels.
height: u32Height in pixels.
row_bytes: usizeBytes per row, width.div_ceil(8).
bits: Vec<u8>The packed bits. A set bit is black, matching the JBIG2 convention
and PDF’s default /Decode for a one-bit image.
Implementations§
Trait Implementations§
impl Eq for BitImage
impl StructuralPartialEq for BitImage
Auto Trait Implementations§
impl Freeze for BitImage
impl RefUnwindSafe for BitImage
impl Send for BitImage
impl Sync for BitImage
impl Unpin for BitImage
impl UnsafeUnpin for BitImage
impl UnwindSafe for BitImage
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