[−][src]Trait pix::AlphaMode
Trait for handling associated versus separated alpha
Associated Constants
const ID: AlphaModeID
Required methods
fn encode<C: Channel, A: Alpha<Chan = C>>(c: C, a: A) -> C
Encode one Channel
using the alpha mode.
fn decode<C: Channel, A: Alpha<Chan = C>>(c: C, a: A) -> C
Decode one Channel
using the alpha mode.
Implementors
impl AlphaMode for AssociatedAlpha
[src]
const ID: AlphaModeID
[src]
fn encode<C: Channel, A: Alpha<Chan = C>>(c: C, a: A) -> C
[src]
Encode one Channel
using the alpha mode.
fn decode<C: Channel, A: Alpha<Chan = C>>(c: C, a: A) -> C
[src]
Decode one Channel
using the alpha mode.
impl AlphaMode for SeparatedAlpha
[src]
const ID: AlphaModeID
[src]
fn encode<C: Channel, A: Alpha<Chan = C>>(c: C, _a: A) -> C
[src]
Encode one Channel
using the alpha mode.
fn decode<C: Channel, A: Alpha<Chan = C>>(c: C, _a: A) -> C
[src]
Decode one Channel
using the alpha mode.
impl<A: Alpha> AlphaMode for Mask<A>
[src]
const ID: AlphaModeID
[src]
fn encode<H: Channel, B: Alpha<Chan = H>>(h: H, b: B) -> H
[src]
Encode one Channel
using the gamma mode.
fn decode<H: Channel, B: Alpha<Chan = H>>(h: H, b: B) -> H
[src]
Decode one Channel
using the gamma mode.
impl<C: Channel, A: Alpha, M: AlphaMode, G: GammaMode> AlphaMode for Gray<C, A, M, G>
[src]
const ID: AlphaModeID
[src]
fn encode<H: Channel, B: Alpha<Chan = H>>(h: H, b: B) -> H
[src]
Encode one Channel
using the gamma mode.
fn decode<H: Channel, B: Alpha<Chan = H>>(h: H, b: B) -> H
[src]
Decode one Channel
using the gamma mode.