Public Member Functions

firevision::PNMWriter Class Reference

PNM file writer. More...

#include <>>

Inheritance diagram for firevision::PNMWriter:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 PNMWriter (PNMFormat format)
 Constructor.
 PNMWriter (PNMFormat format, const char *filename, unsigned int width, unsigned int height)
 Constructor.
virtual void set_buffer (colorspace_t cspace, unsigned char *buffer)
 Set image buffer.
virtual void write ()
 Write to file.

Detailed Description

PNM file writer.

Definition at line 49 of file pnm.h.


Constructor & Destructor Documentation

firevision::PNMWriter::PNMWriter ( PNMFormat  format  ) 

Constructor.

Parameters:
format PNM subformat

Definition at line 46 of file pnm.cpp.

firevision::PNMWriter::PNMWriter ( PNMFormat  format,
const char *  filename,
unsigned int  width,
unsigned int  height 
)

Constructor.

Parameters:
format PNM subformat
filename filename
width image width
height image height

Definition at line 62 of file pnm.cpp.

References firevision::Writer::set_filename().


Member Function Documentation

void firevision::PNMWriter::set_buffer ( colorspace_t  cspace,
unsigned char *  buffer 
) [virtual]

Set image buffer.

Parameters:
cspace color space of image
buffer buffer of image

Reimplemented from firevision::Writer.

Definition at line 78 of file pnm.cpp.

void firevision::PNMWriter::write (  )  [virtual]

Write to file.

Implements firevision::Writer.

Definition at line 228 of file pnm.cpp.

References firevision::Writer::filename.


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