#[repr(C)]pub struct Rgba8 { /* private fields */ }
Expand description
8-bit per channel RGBA pixel format.
This format has four 8-bit channels: red, green, blue and alpha.
Implementations
Trait Implementations
sourceimpl PixFmt for Rgba8
impl PixFmt for Rgba8
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 Rgba8
Auto Trait Implementations
impl RefUnwindSafe for Rgba8
impl Send for Rgba8
impl Sync for Rgba8
impl Unpin for Rgba8
impl UnwindSafe for Rgba8
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