Enum png::ColorType [] [src]

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

Variants

GrayscaleRGBIndexedGrayscaleAlphaRGBA

Methods

impl ColorType
[src]

fn samples(&self) -> usize

Returns the number of samples used per pixel of ColorType

fn from_u8(n: u8) -> Option<ColorType>

u8 -> Self. Temporary solution until Rust provides a canonical one.

Trait Implementations

impl<W: Write> Parameter<Encoder<W>> for ColorType
[src]

fn set_param(self, this: &mut Encoder<W>)

impl Eq for ColorType
[src]

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

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

Formats the value using the given formatter.