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

The width of the image in pixels

height

The height of the image in pixels

color_type

The color type of the image

bit_depth

The bit depth of the image

compression

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

filter

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

interlaced

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

Trait Implementations

Derived Implementations

impl Copy for IhdrData

impl Clone for IhdrData

fn clone(&self) -> IhdrData

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

impl Debug for IhdrData

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