Struct png::Info[][src]

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

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

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

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.