Enum image_buffer::color::ColorType
[−]
[src]
pub enum ColorType { Rgb(u8), Xyz(u8), Lab(u8), Gray(u8), Indexed(u8), }
An enumeration over supported color types and their bit depths.
Variants
Rgb(u8)
sRGB.
Xyz(u8)
CIE XYZ.
Lab(u8)
CIE L*a*b*.
Gray(u8)
Grayscale
Indexed(u8)
Indexed colors.
No specific color moddel is assumed.
Methods
impl ColorType
[src]
fn bits_per_pixel(self) -> usize
Returns the number of bits contained in a pixel of ColorType self
.
fn num_components(self) -> usize
Returns the number of color channels that are in a pixel of ColorType self
.
Trait Implementations
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, __arg_0: &ColorType) -> bool
This method tests for !=
.
impl Eq 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