#[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§
impl Copy for ColorType
impl Eq for ColorType
impl StructuralPartialEq for ColorType
Auto Trait Implementations§
impl Freeze for ColorType
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)