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
[src]

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

Create color mode with given type and bitdepth

Trait Implementations

impl Debug for ColorType
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl Clone for ColorType
[src]

fn clone(&self) -> ColorType

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more

impl Copy for ColorType
[src]