Struct image::png::PNGEncoder [] [src]

pub struct PNGEncoder<W: Write> {
    // some fields omitted
}

PNG encoder

Methods

impl<W: Write> PNGEncoder<W>
[src]

fn new(w: W) -> PNGEncoder<W>

Create a new encoder that writes its output to w

fn encode(self, data: &[u8], width: u32, height: u32, color: ColorType) -> Result<()>

Encodes the image image that has dimensions width and height and ColorType c