| VRS - The Virtual Rendering System |
| version 3.3 |
#include <vrs/io/gifwriter.h>

Public Member Functions | |
| GIFWriter (float fps=0.0, int repeat=0) | |
| creates a GIFWriter | |
| virtual bool | canHandle (SharedObj *obj) const |
| virtual void | write (SharedObj *obj, const std::string &filename) const |
| The GIF writer can handle single images (3 or 4 layers or palette) and iterators over images. | |
| virtual const char * | objectFormatName () const |
| virtual const char * | objectFileSuffix () const |
| Format name is "GIF file format", and suffix is "gif". | |
| VRS_TYPEINFO (GIFWriter, ObjectWriter) | |
Static Public Member Functions | |
| static void | writeFile (Image *image, const std::string &filename) |
| Write the image as GIF file. | |
| VRS::GIFWriter::GIFWriter | ( | float | fps = 0.0, |
|
| int | repeat = 0 | |||
| ) |
creates a GIFWriter
parameters: fps: frames per second repeat: repeat count (0 means loop forever)
| virtual bool VRS::GIFWriter::canHandle | ( | SharedObj * | obj | ) | const [virtual] |
Implements VRS::ObjectWriter.
| virtual void VRS::GIFWriter::write | ( | SharedObj * | obj, | |
| const std::string & | filename | |||
| ) | const [virtual] |
The GIF writer can handle single images (3 or 4 layers or palette) and iterators over images.
If an Iterator< SO<Image> > is passed to the writer, all images are written into one animated gif file. In that case, frame rate and repeat count specified while construction is used.
Implements VRS::ObjectWriter.
| virtual const char* VRS::GIFWriter::objectFormatName | ( | ) | const [virtual] |
Implements VRS::ObjectWriter.
| virtual const char* VRS::GIFWriter::objectFileSuffix | ( | ) | const [virtual] |
| static void VRS::GIFWriter::writeFile | ( | Image * | image, | |
| const std::string & | filename | |||
| ) | [static] |
Write the image as GIF file.
| VRS::GIFWriter::VRS_TYPEINFO | ( | GIFWriter | , | |
| ObjectWriter | ||||
| ) |