[][src]Trait pix::chan::Alpha

pub trait Alpha: Copy + Clone + Debug + Default + PartialEq + Sealed {
    fn encode<C: Channel>(c: C, a: C) -> C;
fn decode<C: Channel>(c: C, a: C) -> C; }

Alpha encoding mode.

This trait is sealed, and cannot be implemented outside of this crate.

Required methods

fn encode<C: Channel>(c: C, a: C) -> C

Encode one Channel using the alpha mode.

fn decode<C: Channel>(c: C, a: C) -> C

Decode one Channel using the alpha mode.

Loading content...

Implementors

impl Alpha for Premultiplied[src]

impl Alpha for Straight[src]

Loading content...