#[repr(u8)]pub enum ColorType {
Grayscale = 0,
Rgb = 2,
Indexed = 3,
GrayscaleAlpha = 4,
Rgba = 6,
}
Expand description
Describes how a pixel is encoded.
Variants§
Grayscale = 0
1 grayscale sample.
Rgb = 2
1 red sample, 1 green sample, 1 blue sample.
Indexed = 3
1 sample for the palette index.
GrayscaleAlpha = 4
1 grayscale sample, then 1 alpha sample.
Rgba = 6
1 red sample, 1 green sample, 1 blue sample, and finally, 1 alpha sample.
Implementations§
Trait Implementations§
source§impl PartialEq for ColorType
impl PartialEq for ColorType
impl Copy for ColorType
impl Eq for ColorType
impl StructuralEq for ColorType
impl StructuralPartialEq for ColorType
Auto Trait Implementations§
impl RefUnwindSafe for ColorType
impl Send for ColorType
impl Sync for ColorType
impl Unpin for ColorType
impl UnwindSafe for ColorType
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more