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

pub enum Format {
    R(Size),
    RG(SizeSize),
    RGB(SizeSizeSize),
    RGBA(SizeSizeSizeSize),
    Depth(Size),
}

Format of a pixel.

Whichever the constructor you choose, the carried Sizes represents how many bits 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. Read more

impl PartialEq for Format
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for Format
[src]

Auto Trait Implementations

impl Send for Format

impl Sync for Format