Fawkes API  Fawkes Development Version
firevision::PNGWriter Class Reference

PNG file writer. More...

#include <>>

Inheritance diagram for firevision::PNGWriter:

Public Member Functions

 PNGWriter ()
 Constructor. More...
 
 PNGWriter (const char *filename, unsigned int width, unsigned int height)
 Constructor. More...
 
 ~PNGWriter ()
 Destructor. More...
 
virtual void set_buffer (colorspace_t cspace, unsigned char *buffer)
 Set image buffer. More...
 
virtual void write ()
 Write to file. More...
 
- Public Member Functions inherited from firevision::Writer
 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

- Protected Member Functions inherited from firevision::Writer
virtual void set_extension (const char *extension)
 Set the filename extension for file written by this writer. More...
 
- Protected Attributes inherited from firevision::Writer
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...
 

Detailed Description

PNG file writer.

Definition at line 34 of file png.h.

Constructor & Destructor Documentation

◆ PNGWriter() [1/2]

firevision::PNGWriter::PNGWriter ( )

Constructor.

Definition at line 45 of file png.cpp.

◆ PNGWriter() [2/2]

firevision::PNGWriter::PNGWriter ( const char *  filename,
unsigned int  width,
unsigned int  height 
)

Constructor.

Parameters
filenamefilename
widthwidth
heightheight

Definition at line 55 of file png.cpp.

References firevision::Writer::height, firevision::Writer::set_filename(), and firevision::Writer::width.

◆ ~PNGWriter()

firevision::PNGWriter::~PNGWriter ( )

Destructor.

Definition at line 65 of file png.cpp.

Member Function Documentation

◆ set_buffer()

void firevision::PNGWriter::set_buffer ( colorspace_t  cspace,
unsigned char *  buffer 
)
virtual

Set image buffer.

Parameters
cspacecolor space of image
bufferbuffer of image

Reimplemented from firevision::Writer.

Definition at line 70 of file png.cpp.

References firevision::Writer::buffer, and firevision::Writer::cspace.

Referenced by firevision::SEGenerator::linear().

◆ write()

void firevision::PNGWriter::write ( )
virtual

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