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

#[repr(C)]
pub enum ColorType { GREY, RGB, PALETTE, GREY_ALPHA, RGBA, BGRA, BGR, BGRX, }

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

Variants

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

RGB: 8, 16 bit

palette: 1, 2, 4, 8 bit

greyscale with alpha: 8, 16 bit

RGB with alpha: 8, 16 bit

Not PNG standard, for internal use only. BGRA with alpha, 8 bit

Not PNG standard, for internal use only. BGR no alpha, 8 bit

Not PNG standard, for internal use only. BGR no alpha, padded, 8 bit

Methods

impl ColorType
[src]

[src]

Create color mode with given type and bitdepth

[src]

channels * bytes per channel = bytes per pixel

Trait Implementations

impl Copy for ColorType
[src]

impl Clone for ColorType
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for ColorType
[src]

[src]

Formats the value using the given formatter.

impl Eq for ColorType
[src]

impl PartialEq for ColorType
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

1.0.0
[src]

This method tests for !=.