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: u32
height: u32
bit_depth: BitDepth
color_type: ColorType
interlaced: bool
trns: Option<Vec<u8>>
pixel_dims: Option<PixelDimensions>
palette: Option<Vec<u8>>
frame_control: Option<FrameControl>
animation_control: Option<AnimationControl>
compression: Compression
filter: FilterType
Implementations
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 row
Returns the number of bytes needed for one deinterlaced row of width width
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Info
impl UnwindSafe for Info
Blanket Implementations
Mutably borrows from an owned value. Read more