Enum nannou::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
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for ColorType
impl UnwindSafe for ColorType
Blanket Implementations
impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S where
T: Component + Float,
D: AdaptFrom<S, Swp, Dwp, T>,
Swp: WhitePoint,
Dwp: WhitePoint,
impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S where
T: Component + Float,
D: AdaptFrom<S, Swp, Dwp, T>,
Swp: WhitePoint,
Dwp: WhitePoint,
Mutably borrows from an owned value. Read more
impl<T> CallHasher for T where
T: Hash,
impl<T> CallHasher for T where
T: Hash,
Convert into T with values clamped to the color defined bounds Read more
Convert into T. The resulting color might be invalid in its color space Read more
Convert into T, returning ok if the color is inside of its defined range,
otherwise an OutOfBounds
error is returned which contains the unclamped color. Read more
Compare self to key
and return true
if they are equal.
pub fn vzip(self) -> V