version 3.3

VRS::GIFWriter Class Reference

Writer for GIF files, i.e. 24-bit images and palette images. More...

#include <vrs/io/gifwriter.h>

Inheritance diagram for VRS::GIFWriter:

VRS::ObjectWriter VRS::SharedObj VRS::Visitable

List of all members.

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.


Detailed Description

Writer for GIF files, i.e. 24-bit images and palette images.

Constructor & Destructor Documentation

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)


Member Function Documentation

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]

Format name is "GIF file format", and suffix is "gif".

Implements VRS::ObjectWriter.

static void VRS::GIFWriter::writeFile ( Image image,
const std::string &  filename 
) [static]

Write the image as GIF file.

VRS::GIFWriter::VRS_TYPEINFO ( GIFWriter  ,
ObjectWriter   
)

> for this method, no GIFWriter instance is necessary. But only one image per file can be written. To create an animated gif, use write() instead.


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

Generated on Mon May 21 06:00:19 2012 by Doxygen 1.5.6
© 2001-2010 Hasso-Plattner-Institut | Impressum | Contact