Trait PixelWithColorType
pub trait PixelWithColorType: Pixel + SealedPixelWithColorType<TransformableSubpixel = <Self as Pixel>::Subpixel>
The pixel with an associated ColorType.
Not all possible pixels represent one of the predefined ColorTypes.
Associated Constants
const COLOR_TYPE: ExtendedColorType;This pixel has the format of one of the predefined
ColorTypes, such asRgb8,La16orRgba32F. This is needed for automatically detecting a color format when saving an image as a file.
Implementors
impl PixelWithColorType for Luma<u16>impl PixelWithColorType for Luma<u8>impl PixelWithColorType for LumaA<u16>impl PixelWithColorType for LumaA<u8>impl PixelWithColorType for Rgb<f32>impl PixelWithColorType for Rgb<u16>impl PixelWithColorType for Rgb<u8>impl PixelWithColorType for Rgba<f32>impl PixelWithColorType for Rgba<u16>impl PixelWithColorType for Rgba<u8>