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>,
}

PNG info struct

Fields

Methods

impl Info
[src]

[src]

Size of the image

[src]

Returns true if the image is an APNG image.

[src]

Returns the frame control information of the image

[src]

Returns the frame control information of the current frame

[src]

Returns the bits per pixel

[src]

Returns the bytes per pixel

[src]

Returns the number of bytes needed for one deinterlaced image

[src]

Returns the number of bytes needed for one deinterlaced row

[src]

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

Trait Implementations

impl Debug for Info
[src]

[src]

Formats the value using the given formatter.

impl Default for Info
[src]

[src]

Returns the "default value" for a type. Read more