#include <image.h>
Inheritance diagram for fl::ImageFileFormat:

Public Methods | |
| ImageFileFormat () | |
| virtual | ~ImageFileFormat () |
| virtual void | read (const std::string &fileName, Image &image) const |
| virtual void | read (std::istream &stream, Image &image) const=0 |
| virtual void | write (const std::string &fileName, const Image &image) const |
| virtual void | write (std::ostream &stream, const Image &image) const=0 |
| virtual bool | isIn (std::istream &stream) const=0 |
| Determines if this format is on the stream. Always rewinds stream back to where it was when function was called. | |
| virtual bool | handles (const std::string &formatName) const=0 |
| Determines if this object handles the format with the given human readable name. | |
Static Public Methods | |
| ImageFileFormat * | find (const std::string &fileName) |
| Determines what format the stream is in. | |
| ImageFileFormat * | find (std::istream &stream) |
| Ditto. Always returns stream to original position. | |
| ImageFileFormat * | findName (const std::string &formatName) |
| Determines what format to use based on given name. | |
| void | getMagic (std::istream &stream, std::string &magic) |
| Attempts to read magic.size () worth of bytes from stream and return them in magic. Always returns stream to original position. | |
Static Public Attributes | |
| std::vector< ImageFileFormat * > | formats |
|
|
|
|
|
|
|
|
Ditto. Always returns stream to original position.
|
|
|
Determines what format the stream is in.
|
|
|
Determines what format to use based on given name.
|
|
||||||||||||
|
Attempts to read magic.size () worth of bytes from stream and return them in magic. Always returns stream to original position.
|
|
|
Determines if this object handles the format with the given human readable name.
Implemented in fl::ImageFileFormatPGM, fl::ImageFileFormatEPS, fl::ImageFileFormatJPEG, fl::ImageFileFormatTIFF, and fl::ImageFileFormatMatlab. |
|
|
Determines if this format is on the stream. Always rewinds stream back to where it was when function was called.
Implemented in fl::ImageFileFormatPGM, fl::ImageFileFormatEPS, fl::ImageFileFormatJPEG, fl::ImageFileFormatTIFF, and fl::ImageFileFormatMatlab. |
|
||||||||||||
|
Implemented in fl::ImageFileFormatPGM, fl::ImageFileFormatEPS, fl::ImageFileFormatJPEG, fl::ImageFileFormatTIFF, and fl::ImageFileFormatMatlab. |
|
||||||||||||
|
Reimplemented in fl::ImageFileFormatTIFF. |
|
||||||||||||
|
Implemented in fl::ImageFileFormatPGM, fl::ImageFileFormatEPS, fl::ImageFileFormatJPEG, fl::ImageFileFormatTIFF, and fl::ImageFileFormatMatlab. |
|
||||||||||||
|
Reimplemented in fl::ImageFileFormatTIFF. |
|
|
|
1.2.18