Fawkes API
Fawkes Development Version
|
24 #include <core/exception.h>
25 #include <core/exceptions/system.h>
26 #include <fvutils/writers/writer.h>
32 namespace firevision {
104 free(this->filename);
151 free(this->extension);
unsigned char * buffer
The image-buffer.
virtual void set_filename(const char *filename)
Set filename.
char * extension
The extension of the file.
char * basename
The basename of the file.
virtual void set_dimensions(unsigned int width, unsigned int height)
Set dimensions of image in pixels.
colorspace_t cspace
The colorspace of the image.
virtual void set_buffer(colorspace_t cspace, unsigned char *buffer)
Set image buffer.
virtual void set_extension(const char *extension)
Set the filename extension for file written by this writer.
virtual ~Writer()
Virtual empty destructor.
char * filename
The complete filename.
System ran out of memory and desired operation could not be fulfilled.
Writer(const char *extension=0)
Constructor.
unsigned int height
The height of the image.
unsigned int width
The width of the image.
Base class for exceptions in Fawkes.