[][src]Trait pix::ops::Blend

pub trait Blend: Copy + Clone {
    fn composite<C: Channel>(dst: &mut C, da1: C, src: &C, sa1: C);
}

Blending operation for compositing.

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

Required methods

fn composite<C: Channel>(dst: &mut C, da1: C, src: &C, sa1: C)

Composite a destination and source

  • dst Destination channel
  • da1 One minus destination alpha
  • src Source channel
  • sa1 One minus source alpha
Loading content...

Implementors

impl Blend for Clear[src]

impl Blend for Dest[src]

impl Blend for DestAtop[src]

impl Blend for DestIn[src]

impl Blend for DestOut[src]

impl Blend for DestOver[src]

impl Blend for Plus[src]

impl Blend for Src[src]

impl Blend for SrcAtop[src]

impl Blend for SrcIn[src]

impl Blend for SrcOut[src]

impl Blend for SrcOver[src]

impl Blend for Xor[src]

Loading content...