#[repr(C)]pub enum ColorType {
GREY = 0,
RGB = 2,
PALETTE = 3,
GREY_ALPHA = 4,
RGBA = 6,
BGRA = 70,
BGR = 66,
BGRX = 67,
}
Expand description
Type for decode
, encode
, etc. Same as standard PNG color types.
Variants§
GREY = 0
greyscale: 1, 2, 4, 8, 16 bit
RGB = 2
RGB: 8, 16 bit
PALETTE = 3
palette: 1, 2, 4, 8 bit
GREY_ALPHA = 4
greyscale with alpha: 8, 16 bit
RGBA = 6
RGB with alpha: 8, 16 bit
BGRA = 70
Not PNG standard, for internal use only. BGRA with alpha, 8 bit
BGR = 66
Not PNG standard, for internal use only. BGR no alpha, 8 bit
BGRX = 67
Not PNG standard, for internal use only. BGR no alpha, padded, 8 bit
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more