[][src]Trait pix::chan::Gamma

pub trait Gamma: Copy + Clone + Debug + Default + PartialEq + Sealed {
    fn to_linear<C: Channel>(c: C) -> C;
fn from_linear<C: Channel>(c: C) -> C; }

Gamma encoding mode.

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

Required methods

fn to_linear<C: Channel>(c: C) -> C

Convert a Channel value to linear.

fn from_linear<C: Channel>(c: C) -> C

Convert a Channel value from linear.

Loading content...

Implementors

impl Gamma for Linear[src]

fn to_linear<C: Channel>(c: C) -> C[src]

Convert a Channel value to linear.

fn from_linear<C: Channel>(c: C) -> C[src]

Convert a Channel value from linear.

impl Gamma for Srgb[src]

fn to_linear<C: Channel>(c: C) -> C[src]

Convert a Channel value to linear.

fn from_linear<C: Channel>(c: C) -> C[src]

Convert a Channel value from linear.

Loading content...