Enum image::ColorType
[−]
[src]
pub enum ColorType { Gray(u8), RGB(u8), Palette(u8), GrayA(u8), RGBA(u8), }
An enumeration over supported color types and their bit depths
Variants
Gray(u8)
Pixel is grayscale
RGB(u8)
Pixel contains R, G and B channels
Palette(u8)
Pixel is an index into a color palette
GrayA(u8)
Pixel is grayscale with an alpha channel
RGBA(u8)
Pixel is RGB with an alpha channel
Trait Implementations
impl From<(ColorType, BitDepth)> for ColorType
[src]
impl From<PixelFormat> 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]
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, __arg_0: &ColorType) -> bool
This method tests for !=
.