Fawkes API
Fawkes Development Version
|
PNM file writer. More...
#include <>>
Public Member Functions | |
PNMWriter (PNMFormat format) | |
Constructor. More... | |
PNMWriter (PNMFormat format, const char *filename, unsigned int width, unsigned int height) | |
Constructor. More... | |
virtual void | set_buffer (colorspace_t cspace, unsigned char *buffer) |
Set image buffer. More... | |
virtual void | write () |
Write to file. More... | |
![]() | |
Writer (const char *extension=0) | |
Constructor. More... | |
virtual | ~Writer () |
Virtual empty destructor. More... | |
virtual void | set_filename (const char *filename) |
Set filename. More... | |
virtual void | set_dimensions (unsigned int width, unsigned int height) |
Set dimensions of image in pixels. More... | |
Additional Inherited Members | |
![]() | |
virtual void | set_extension (const char *extension) |
Set the filename extension for file written by this writer. More... | |
![]() | |
char * | filename |
The complete filename. More... | |
char * | basename |
The basename of the file. More... | |
char * | extension |
The extension of the file. More... | |
unsigned int | width |
The width of the image. More... | |
unsigned int | height |
The height of the image. More... | |
colorspace_t | cspace |
The colorspace of the image. More... | |
unsigned char * | buffer |
The image-buffer. More... | |
firevision::PNMWriter::PNMWriter | ( | PNMFormat | format | ) |
firevision::PNMWriter::PNMWriter | ( | PNMFormat | format, |
const char * | filename, | ||
unsigned int | width, | ||
unsigned int | height | ||
) |
Constructor.
format | PNM subformat |
filename | filename |
width | image width |
height | image height |
Definition at line 62 of file pnm.cpp.
References firevision::Writer::set_filename().
|
virtual |
Set image buffer.
cspace | color space of image |
buffer | buffer of image |
Reimplemented from firevision::Writer.
|
virtual |
Write to file.
Implements firevision::Writer.
Definition at line 228 of file pnm.cpp.
References firevision::Writer::filename.