Struct image::png::PNGDecoder
[-] [+]
[src]
pub struct PNGDecoder<R> { // some fields omitted }
The representation of a PNG decoder
Currently does not support decoding of interlaced images
Methods
impl<R: Read> PNGDecoder<R>
fn new(r: R) -> PNGDecoder<R>
Create a new decoder that decodes from the stream r
fn palette<'a>(&'a self) -> &'a [(u8, u8, u8)]
Returns a reference to the color palette used for indexed color images. Each array element is a tuple of RGB values.