Struct png::Info

source ·
pub struct Info {
    pub width: u32,
    pub height: u32,
    pub bit_depth: BitDepth,
    pub color_type: ColorType,
    pub interlaced: bool,
    pub trns: Option<Vec<u8>>,
    pub pixel_dims: Option<PixelDimensions>,
    pub palette: Option<Vec<u8>>,
    pub frame_control: Option<FrameControl>,
    pub animation_control: Option<AnimationControl>,
    pub compression: Compression,
    pub filter: FilterType,
}
Expand description

PNG info struct

Fields

width: u32height: u32bit_depth: BitDepthcolor_type: ColorTypeinterlaced: booltrns: Option<Vec<u8>>pixel_dims: Option<PixelDimensions>palette: Option<Vec<u8>>frame_control: Option<FrameControl>animation_control: Option<AnimationControl>compression: Compressionfilter: FilterType

Implementations

Size of the image

Returns true if the image is an APNG image.

Returns the frame control information of the image

Returns the frame control information of the current frame

Returns the bits per pixel

Returns the bytes per pixel

Returns the number of bytes needed for one deinterlaced image

Returns the number of bytes needed for one deinterlaced row

Returns the number of bytes needed for one deinterlaced row of width width

Trait Implementations

Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.