Enum luminance::pixel::Format [] [src]

pub enum Format {
    R(u8),
    RG(u8u8),
    RGB(u8u8u8),
    RGBA(u8u8u8u8),
    Depth(u8),
}

Format of a pixel.

Whichever the constructor you choose, the carried u8s represents how many bytes are used to represent each channel.

Variants

R(u8)

Holds a red-only channel.

RG(u8u8)

Holds red and green channels.

RGB(u8u8u8)

Holds red, green and blue channels.

RGBA(u8u8u8u8)

Holds red, green, blue and alpha channels.

Depth(u8)

Holds a depth channel.

Trait Implementations

impl Debug for Format
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl Copy for Format
[src]

impl Clone for Format
[src]

fn clone(&self) -> Format

Returns a copy of the value. Read more

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

Performs copy-assignment from source. Read more