Struct png::OutputInfo [−][src]
pub struct OutputInfo {
pub width: u32,
pub height: u32,
pub color_type: ColorType,
pub bit_depth: BitDepth,
pub line_size: usize,
}
Expand description
Output info.
This describes one particular frame of the image that was written into the output buffer.
Fields
width: u32
The pixel width of this frame.
height: u32
The pixel height of this frame.
color_type: ColorType
The chosen output color type.
bit_depth: BitDepth
The chosen output bit depth.
line_size: usize
The byte count of each scan line in the image.
Implementations
Returns the size needed to hold a decoded frame If the output buffer was larger then bytes after this count should be ignored. They may still have been changed.
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.