#[repr(C)]pub struct Gray8 { /* private fields */ }
Expand description
8-bit grayscale pixel format.
This pixel format is for 8-bit grayscale with no alpha channel.
Implementations
Trait Implementations
sourceimpl PixFmt for Gray8
impl PixFmt for Gray8
sourcefn color_type() -> ColorType
fn color_type() -> ColorType
Get the PNG color type.
sourcefn over(pix: &mut [Self], mask: &Mask, clr: Self)
fn over(pix: &mut [Self], mask: &Mask, clr: Self)
Blend pixels with an alpha mask.
pix
Slice of pixels.mask
Alpha mask for compositing.src
Source color.
sourcefn divide_alpha(_pix: &mut [Self])
fn divide_alpha(_pix: &mut [Self])
Divide alpha (remove premultiplied alpha)
impl Copy for Gray8
Auto Trait Implementations
impl RefUnwindSafe for Gray8
impl Send for Gray8
impl Sync for Gray8
impl Unpin for Gray8
impl UnwindSafe for Gray8
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more