Enum image::ColorType [] [src]

pub enum ColorType {

An enumeration over supported color types and their bit depths


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

Performs the conversion.

impl From<PixelFormat> for ColorType

Performs the conversion.

impl Copy for ColorType

impl PartialEq for ColorType

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

impl Debug for ColorType

Formats the value using the given formatter.

impl Clone for ColorType

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more