pub struct GrayPixmap {
pub width: u32,
pub height: u32,
pub data: Vec<u8>,
}Expand description
An 8-bit grayscale image, 1 byte per pixel.
Row-major, top-to-bottom. data.len() == width * height.
Produced by Pixmap::to_gray8 or [crate::djvu_render::render_gray8].
Fields§
§width: u32§height: u32§data: Vec<u8>Grayscale pixel data, row-major. Length = width * height.
Implementations§
Trait Implementations§
Source§impl Clone for GrayPixmap
impl Clone for GrayPixmap
Source§fn clone(&self) -> GrayPixmap
fn clone(&self) -> GrayPixmap
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GrayPixmap
impl Debug for GrayPixmap
Source§impl Default for GrayPixmap
impl Default for GrayPixmap
Source§fn default() -> GrayPixmap
fn default() -> GrayPixmap
Returns the “default value” for a type. Read more
Source§impl PartialEq for GrayPixmap
impl PartialEq for GrayPixmap
Source§fn eq(&self, other: &GrayPixmap) -> bool
fn eq(&self, other: &GrayPixmap) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for GrayPixmap
impl StructuralPartialEq for GrayPixmap
Auto Trait Implementations§
impl Freeze for GrayPixmap
impl RefUnwindSafe for GrayPixmap
impl Send for GrayPixmap
impl Sync for GrayPixmap
impl Unpin for GrayPixmap
impl UnsafeUnpin for GrayPixmap
impl UnwindSafe for GrayPixmap
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