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<ColorType> for (ColorType, BitDepth)[src]
impl From<PixelFormat> for ColorType[src]
fn from(pixel_format: PixelFormat) -> ColorType[src]
Performs the conversion.
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, __arg_0: &ColorType) -> bool[src]
This method tests for !=.
impl Eq 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