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

Holds a red-only channel.

Holds red and green channels.

Holds red, green and blue channels.

Holds red, green, blue and alpha channels.

Holds a depth channel.

Trait Implementations

impl Clone for Format
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for Format
[src]

impl Debug for Format
[src]

Formats the value using the given formatter.