Enum png::ColorType
[−]
[src]
#[repr(u8)]pub enum ColorType { Grayscale, RGB, Indexed, GrayscaleAlpha, RGBA, }
Variants
GrayscaleRGBIndexedGrayscaleAlphaRGBA
Methods
impl ColorType[src]
pub fn samples(&self) -> usize[src]
Returns the number of samples used per pixel of ColorType
pub fn from_u8(n: u8) -> Option<ColorType>[src]
u8 -> Self. Temporary solution until Rust provides a canonical one.
Trait Implementations
impl<W: Write> Parameter<Encoder<W>> for ColorType[src]
impl Debug for ColorType[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result[src]
Formats the value using the given formatter. Read more
impl Clone for ColorType[src]
fn clone(&self) -> ColorType[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl Copy for ColorType[src]
impl PartialEq for ColorType[src]
fn eq(&self, __arg_0: &ColorType) -> bool[src]
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
This method tests for !=.