#[repr(C)]
pub enum ColorType {
GREY,
RGB,
PALETTE,
GREY_ALPHA,
RGBA,
BGRA,
BGR,
BGRX,
}
Expand description
Type for decode
, encode
, etc. Same as standard PNG color types.
Variants
GREY
greyscale: 1, 2, 4, 8, 16 bit
RGB
RGB: 8, 16 bit
PALETTE
palette: 1, 2, 4, 8 bit
GREY_ALPHA
greyscale with alpha: 8, 16 bit
RGBA
RGB with alpha: 8, 16 bit
BGRA
Not PNG standard, for internal use only. BGRA with alpha, 8 bit
BGR
Not PNG standard, for internal use only. BGR no alpha, 8 bit
BGRX
Not PNG standard, for internal use only. BGR no alpha, padded, 8 bit
Implementations
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for ColorType
impl UnwindSafe for ColorType
Blanket Implementations
Mutably borrows from an owned value. Read more