Struct oxipng::png::IhdrData [] [src]

pub struct IhdrData {
    pub width: u32,
    pub height: u32,
    pub color_type: ColorType,
    pub bit_depth: BitDepth,
    pub compression: u8,
    pub filter: u8,
    pub interlaced: u8,
}

Headers from the IHDR chunk of the image

Fields

width: u32

The width of the image in pixels

height: u32

The height of the image in pixels

color_type: ColorType

The color type of the image

bit_depth: BitDepth

The bit depth of the image

compression: u8

The compression method used for this image (0 for DEFLATE)

filter: u8

The filter mode used for this image (currently only 0 is valid)

interlaced: u8

The interlacing mode of the image (0 = None, 1 = Adam7)

Trait Implementations

impl Copy for IhdrData
[src]

impl Clone for IhdrData
[src]

fn clone(&self) -> IhdrData

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 Debug for IhdrData
[src]

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

Formats the value using the given formatter.