[][src]Trait pix::Channel

pub trait Channel: Copy + Default + Ord + Sub<Output = Self> + Mul<Output = Self> + Div<Output = Self> + Gamma {
    const MIN: Self;
    const MAX: Self;

    fn powf(self, g: f32) -> Self;
}

One component of a pixel Format.

For example, in Rgb there are red, green and blue Channels.

Defined Channels are Ch8, Ch16 and Ch32.

Associated Constants

const MIN: Self

Minimum intensity (zero)

const MAX: Self

Maximum intensity (one)

Loading content...

Required methods

fn powf(self, g: f32) -> Self

Raise to given power

Loading content...

Implementors

impl Channel for Ch16[src]

const MIN: Ch16[src]

Minimum intensity (zero)

const MAX: Ch16[src]

Maximum intensity (one)

fn powf(self, g: f32) -> Self[src]

Raise to given power

impl Channel for Ch32[src]

const MIN: Ch32[src]

Minimum intensity (zero)

const MAX: Ch32[src]

Maximum intensity (one)

fn powf(self, g: f32) -> Self[src]

Raise to given power

impl Channel for Ch8[src]

const MIN: Ch8[src]

Minimum intensity (zero)

const MAX: Ch8[src]

Maximum intensity (one)

fn powf(self, g: f32) -> Self[src]

Raise to given power

Loading content...