Struct image::ppm::PPMDecoder [] [src]

pub struct PPMDecoder<R>(_);
Deprecated since 0.17.0

: Use pnm::PNMDecoder instead, check the subtype if necessary

PPM decoder, restriction pnm type to ppm

Methods

impl<R: Read> PPMDecoder<R>
[src]

[src]

Deprecated since 0.17.0

: Use pnm::PNMDecoder instead, check the subtype if necessary

Create a new pnm decoder and asserts it is ppm

Trait Implementations

impl<R: Read> ImageDecoder for PPMDecoder<R>
[src]

[src]

Returns a tuple containing the width and height of the image

[src]

Returns the color type of the image e.g. RGB(8) (8bit RGB)

[src]

Returns the length in bytes of one decoded row of the image

[src]

Reads one row from the image into buf and returns the row index

[src]

Decodes the entire image and return it as a Vector

[src]

Returns true if the image is animated

[src]

Returns the frames of the image Read more

[src]

Decodes a specific region of the image, represented by the rectangle starting from x and y and having length and width Read more