[][src]Enum pix::GammaMode

pub enum GammaMode {
    Linear,
    Srgb,
    PowerLaw(f32),
}

Mode for handling gamma encoding / decoding.

Variants

Linear

No gamma correction applied

Srgb

Gamma correction using the sRGB formula

PowerLaw(f32)

Gamma correction with a specified value

Methods

impl GammaMode[src]

pub fn encode<C>(self, c: C) -> C where
    C: Channel
[src]

Encode one Channel using the gamma mode.

pub fn decode<C>(self, c: C) -> C where
    C: Channel
[src]

Decode one Channel using the gamma mode.

Trait Implementations

impl Clone for GammaMode[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl PartialEq<GammaMode> for GammaMode[src]

impl Copy for GammaMode[src]

impl Debug for GammaMode[src]

Auto Trait Implementations

Blanket Implementations

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

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

type Owned = T

The resulting type after obtaining ownership.

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

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.

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

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

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