[][src]Enum screen_13::gpu::MatteMode

pub enum MatteMode {
    Alpha,
    AlphaInverted,
    Luminance,
    LuminanceInverted,
}

Matting blends two images (a into b) based on the features of a matte image.

TODO: This feature isn't fully implemented yet

Variants

Alpha

Matte formula: alpha = min(a, matte) color = a * alpha;

AlphaInverted

Matte formula: alpha = min(a, 1 - matte) color = a * alpha;

Luminance

Matte formula: gray = hsl-based gray function alpha = min(a, gray(matte)) color = a * alpha;

LuminanceInverted

Matte formula: gray = hsl-based gray function alpha = min(a, 1 - gray(matte)) color = a * alpha;

Trait Implementations

impl Clone for MatteMode[src]

impl Copy for MatteMode[src]

impl Debug for MatteMode[src]

impl Default for MatteMode[src]

impl Eq for MatteMode[src]

impl Hash for MatteMode[src]

impl PartialEq<MatteMode> for MatteMode[src]

impl StructuralEq for MatteMode[src]

impl StructuralPartialEq for MatteMode[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T> Same<T> for T[src]

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.