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

Gray

Pixel is grayscale

RGB

Pixel contains R, G and B channels

Palette

Pixel is an index into a color palette

GrayA

Pixel is grayscale with an alpha channel

RGBA

Pixel is RGB with an alpha channel

Trait Implementations

impl From<(ColorType, BitDepth)> for ColorType

fn from((ct, bits): (ColorType, BitDepth)) -> ColorType

impl From<PixelFormat> for ColorType

fn from(pixel_format: PixelFormat) -> ColorType

Derived Implementations

impl Clone for ColorType

fn clone(&self) -> ColorType

1.0.0fn clone_from(&mut self, source: &Self)

impl Debug for ColorType

fn fmt(&self, __arg_0: &mut Formatter) -> Result

impl Eq for ColorType

impl PartialEq for ColorType

fn eq(&self, __arg_0: &ColorType) -> bool

fn ne(&self, __arg_0: &ColorType) -> bool

impl Copy for ColorType