Enum png::ColorType
[−]
[src]
#[repr(u8)]pub enum ColorType { Grayscale, RGB, Indexed, GrayscaleAlpha, RGBA, }
Variants
Grayscale
RGB
Indexed
GrayscaleAlpha
RGBA
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]
impl Debug 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 Copy 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 !=
.