Trait image::PixelWithColorType
source · pub trait PixelWithColorType: Pixel + SealedPixelWithColorType {
const COLOR_TYPE: ExtendedColorType;
}
Expand description
The pixel with an associated ColorType
.
Not all possible pixels represent one of the predefined ColorType
s.
Required Associated Constants§
sourceconst COLOR_TYPE: ExtendedColorType
const COLOR_TYPE: ExtendedColorType
This pixel has the format of one of the predefined ColorType
s,
such as Rgb8
, La16
or Rgba32F
.
This is needed for automatically detecting
a color format when saving an image as a file.
Object Safety§
This trait is not object safe.