Enum oxipng::colors::ColorType [] [src]

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

The color type used to represent this image

Variants

Grayscale, with one color channel

RGB, with three color channels

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

Grayscale + Alpha, with two color channels

RGBA, with four color channels

Methods

impl ColorType
[src]

Get the code used by the PNG specification to denote this color type

Trait Implementations

impl Debug for ColorType
[src]

Formats the value using the given formatter.

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for ColorType
[src]

impl Display for ColorType
[src]

Formats the value using the given formatter. Read more