Enum image::ColorType [−][src]
pub enum ColorType { L8, La8, Rgb8, Rgba8, L16, La16, Rgb16, Rgba16, Bgr8, Bgra8, // some variants omitted }
Expand description
An enumeration over supported color types and bit depths
Variants
Pixel is 8-bit luminance
Pixel is 8-bit luminance with an alpha channel
Pixel contains 8-bit R, G and B channels
Pixel is 8-bit RGB with an alpha channel
Pixel is 16-bit luminance
Pixel is 16-bit luminance with an alpha channel
Pixel is 16-bit RGB
Pixel is 16-bit RGBA
Pixel contains 8-bit B, G and R channels
Pixel is 8-bit BGR with an alpha channel
Implementations
Returns the number of bytes contained in a pixel of ColorType
c
Returns the number of bits contained in a pixel of ColorType
c
(which will always be
a multiple of 8).
Returns the number of color channels that make up this pixel
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for ColorType
impl UnwindSafe for ColorType
Blanket Implementations
Mutably borrows from an owned value. Read more