Struct image::ppm::PPMEncoder [] [src]

pub struct PPMEncoder<'a, W: 'a> { /* fields omitted */ }

A representation of a PPM encoder.

Methods

impl<'a, W: Write> PPMEncoder<'a, W>
[src]

Create a new PPMEncoder from the Writer w. This function takes ownership of the Writer.

Encode the buffer im as a PPM image. width and height are the dimensions of the buffer. color is the buffers ColorType.