[][src]Struct png::Info

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

PNG info struct

Fields

Methods

impl Info
[src]

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

impl Default for Info
[src]

impl Debug for Info
[src]

Auto Trait Implementations

impl Send for Info

impl Sync for Info

Blanket Implementations

impl<T> From for T
[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

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

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]