#[repr(C)]pub struct fz_bitmap {
pub refs: c_int,
pub w: c_int,
pub h: c_int,
pub stride: c_int,
pub n: c_int,
pub xres: c_int,
pub yres: c_int,
pub samples: *mut c_uchar,
}
Expand description
Bitmaps have 1 bit per component. Only used for creating
halftoned versions of contone buffers, and saving out. Samples
are stored msb first, akin to pbms.
The internals of this struct are considered implementation
details and subject to change. Where possible, accessor
functions should be used in preference.
Fields§
§refs: c_int
§w: c_int
§h: c_int
§stride: c_int
§n: c_int
§xres: c_int
§yres: c_int
§samples: *mut c_uchar
Trait Implementations§
Auto Trait Implementations§
impl Freeze for fz_bitmap
impl RefUnwindSafe for fz_bitmap
impl !Send for fz_bitmap
impl !Sync for fz_bitmap
impl Unpin for fz_bitmap
impl UnwindSafe for fz_bitmap
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