Enum oxipng::png::ColorType [] [src]

pub enum ColorType {
    Grayscale,
    RGB,
    Indexed,
    GrayscaleAlpha,
    RGBA,
}

The color type used to represent this image

Variants

Grayscale

Grayscale, with one color channel

RGB

RGB, with three color channels

Indexed

Indexed, with one byte per pixel representing one of up to 256 colors in the image

GrayscaleAlpha

Grayscale + Alpha, with two color channels

RGBA

RGBA, with four color channels

Trait Implementations

impl Copy for ColorType
[src]

impl Clone for ColorType
[src]

fn clone(&self) -> ColorType

Returns a copy of the value. Read more

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

Performs copy-assignment from source. Read more

impl PartialEq for ColorType
[src]

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

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

fn ne(&self, other: &Rhs) -> bool
1.0.0

This method tests for !=.

impl Debug for ColorType
[src]

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

Formats the value using the given formatter.

impl Display for ColorType
[src]

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

Formats the value using the given formatter.