An enumeration over supported color types and bit depths
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
pub fn bytes_per_pixel(self) -> u8[src]
Returns the number of bytes contained in a pixel of
Returns if there is an alpha channel.
Returns false if the color scheme is grayscale, true otherwise.
pub fn bits_per_pixel(self) -> u16[src]
Returns the number of bits contained in a pixel of
c (which will always be
a multiple of 8).
pub fn channel_count(self) -> u8[src]
Returns the number of color channels that make up this pixel
impl From<ColorType> for ExtendedColorType[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where1.3.0[src]
impl StructuralEq for ColorType[src]
impl StructuralPartialEq for ColorType[src]
impl RefUnwindSafe for ColorType
impl UnwindSafe for ColorType
type Owned = T
The resulting type after obtaining ownership.
pub fn clone_into(&self, target: &mut T)[src]
type Error = Infallible
The type returned in the event of a conversion error.