Enum png::ColorType [−][src]
#[repr(u8)]
pub enum ColorType {
Grayscale,
Rgb,
Indexed,
GrayscaleAlpha,
Rgba,
}
Expand description
Describes how a pixel is encoded.
Variants
1 grayscale sample.
1 red sample, 1 green sample, 1 blue sample.
1 sample for the palette index.
1 grayscale sample, then 1 alpha sample.
1 red sample, 1 green sample, 1 blue sample, and finally, 1 alpha sample.
Implementations
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for ColorType
impl UnwindSafe for ColorType
Blanket Implementations
Mutably borrows from an owned value. Read more