Enum image_buffer::color::ColorType [] [src]

pub enum ColorType {
    Rgb(u8),
    Xyz(u8),
    Lab(u8),
    Gray(u8),
    Indexed(u8),
}

An enumeration over supported color types and their bit depths.

Variants

sRGB.

CIE XYZ.

CIE L*a*b*.

Grayscale

Indexed colors.

No specific color moddel is assumed.

Methods

impl ColorType
[src]

Returns the number of bits contained in a pixel of ColorType self.

Returns the number of color channels that are in a pixel of ColorType self.

Trait Implementations

impl Copy for ColorType
[src]

impl PartialEq for ColorType
[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 ColorType
[src]

impl Debug for ColorType
[src]

Formats the value using the given formatter.

impl Clone for ColorType
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more