Enum image::ColorType [] [src]

pub enum ColorType {
    Gray(u8),
    RGB(u8),
    Palette(u8),
    GrayA(u8),
    RGBA(u8),
}

An enumeration over supported color types and their bit depths

Variants

Pixel is grayscale

Pixel contains R, G and B channels

Pixel is an index into a color palette

Pixel is grayscale with an alpha channel

Pixel is RGB with an alpha channel

Trait Implementations

impl From<(ColorType, BitDepth)> for ColorType
[src]

[src]

Performs the conversion.

impl From<PixelFormat> for ColorType
[src]

[src]

Performs the conversion.

impl Copy for ColorType
[src]

impl PartialEq for ColorType
[src]

[src]

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

[src]

This method tests for !=.

impl Eq for ColorType
[src]

impl Debug for ColorType
[src]

[src]

Formats the value using the given formatter.

impl Clone for ColorType
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more