VideoTools
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Gr::PnmReader Class Reference

A static interface for reading portable-anymap (pnm) files. More...

#include <grpnm.h>

Public Member Functions

 PnmReader (int scale=1, bool monochrome_out=false)
 Constructor.
 
void setup (int scale, bool monochrome_out=false)
 Sets the decoding scale factor.
 
void decode (ImageData &out, const G::Path &in)
 Decodes a pnm file into an image. Throws on error.
 
void decode (ImageData &out, std::istream &in)
 Decodes a pnm stream into an image. Throws on error.
 
void decode (ImageData &out, const char *p_in, size_t n_in)
 Decodes a pnm buffer into an image. Throws on error.
 
void decode (ImageData &out, const ImageBuffer &)
 Decodes a pnm image buffer into an image. Throws on error.
 
const PnmInfoinfo () const
 Returns the pnm header info, ignoring scaling.
 

Detailed Description

A static interface for reading portable-anymap (pnm) files.

Definition at line 110 of file grpnm.h.


The documentation for this class was generated from the following files: