GitHub project page

Enum lodepng::ffi::ColorType [-]  [+] [src]

pub enum ColorType {
    LCT_GREY,
    LCT_RGB,
    LCT_PALETTE,
    LCT_GREY_ALPHA,
    LCT_RGBA,
}

Type for decode, encode, etc. Same as standard PNG color types.

Variants

LCT_GREY

greyscale: 1, 2, 4, 8, 16 bit

LCT_RGB

RGB: 8, 16 bit

LCT_PALETTE

palette: 1, 2, 4, 8 bit

LCT_GREY_ALPHA

greyscale with alpha: 8, 16 bit

LCT_RGBA

RGB with alpha: 8, 16 bit

Methods

impl ColorType

fn to_color_mode(&self, bitdepth: c_uint) -> ColorMode

Create color mode with given type and bitdepth

Trait Implementations

Derived Implementations

impl Copy for ColorType