[−][src]Struct png::Reader
PNG reader (mostly high-level interface)
Provides a high level that iterates over lines or whole images.
Methods
impl<R: Read> Reader<R>
[src]
impl<R: Read> Reader<R>
pub fn info(&self) -> &Info
[src]
pub fn info(&self) -> &Info
pub fn next_frame(&mut self, buf: &mut [u8]) -> Result<(), DecodingError>
[src]
pub fn next_frame(&mut self, buf: &mut [u8]) -> Result<(), DecodingError>
Decodes the next frame into buf
pub fn next_row(&mut self) -> Result<Option<&[u8]>, DecodingError>
[src]
pub fn next_row(&mut self) -> Result<Option<&[u8]>, DecodingError>
Returns the next processed row of the image
pub fn next_interlaced_row(
&mut self
) -> Result<Option<(&[u8], Option<(u8, u32, u32)>)>, DecodingError>
[src]
pub fn next_interlaced_row(
&mut self
) -> Result<Option<(&[u8], Option<(u8, u32, u32)>)>, DecodingError>
Returns the next processed row of the image
pub fn output_color_type(&mut self) -> (ColorType, BitDepth)
[src]
pub fn output_color_type(&mut self) -> (ColorType, BitDepth)
Returns the color type and the number of bits per sample
of the data returned by Reader::next_row
and Reader::frames`.
pub fn output_buffer_size(&self) -> usize
[src]
pub fn output_buffer_size(&self) -> usize
Returns the number of bytes required to hold a deinterlaced image frame that is decoded using the given input transformations.
pub fn output_line_size(&self, width: u32) -> usize
[src]
pub fn output_line_size(&self, width: u32) -> usize
Returns the number of bytes required to hold a deinterlaced row.
Auto Trait Implementations
Blanket Implementations
impl<T> From for T
[src]
impl<T> From for T
impl<T, U> Into for T where
U: From<T>,
[src]
impl<T, U> Into for T where
U: From<T>,
impl<T, U> TryFrom for T where
T: From<U>,
[src]
impl<T, U> TryFrom for T where
T: From<U>,
type Error = !
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
try_from
)Performs the conversion.
impl<T> Borrow for T where
T: ?Sized,
[src]
impl<T> Borrow for T where
T: ?Sized,
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
try_from
)Performs the conversion.
impl<T> BorrowMut for T where
T: ?Sized,
[src]
impl<T> BorrowMut for T where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> Any for T where
T: 'static + ?Sized,
[src]
impl<T> Any for T where
T: 'static + ?Sized,
fn get_type_id(&self) -> TypeId
[src]
fn get_type_id(&self) -> TypeId
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static
Gets the TypeId
of self
. Read more