eLynx::Image::IImageFileFormat Class Reference
#include <IImageFileFormat.h>
List of all members.
|
Public Member Functions |
virtual | ~IImageFileFormat () |
|
virtual size_t | GetInputExtCount () const =0 |
virtual const char * | GetInputExt (size_t iIndex) const =0 |
virtual bool | IsSupported (const char *iprFilename, ImageFileInfo &oInfo, bool ibPreview=false) const =0 |
virtual bool | GeneratePreview (const char *iprFilenameIn, const char *iprFilenameOut, ProgressNotifier &iNotifier) const =0 |
virtual bool | Import (ImageVariant &oImage, const char *iprFilename, ImageFileInfo &oInfo, ProgressNotifier &iNotifier)=0 |
|
virtual size_t | GetOutputExtCount () const =0 |
virtual const char * | GetOutputExt (size_t iIndex) const =0 |
virtual size_t | GetOutputImageFormatCount () const =0 |
virtual EPixelFormat | GetOutputPixelFormat (size_t iIndex) const =0 |
virtual bool | Export (const ImageVariant &iImage, const char *iprFilename, ProgressNotifier &iNotifier, const ImageFileOptions *iprOptions=NULL)=0 |
Detailed Description
Interface defining an image file format.
TODO
Definition at line 33 of file IImageFileFormat.h.
Constructor & Destructor Documentation
virtual eLynx::Image::IImageFileFormat::~IImageFileFormat |
( |
|
) |
[virtual] |
Member Function Documentation
virtual size_t eLynx::Image::IImageFileFormat::GetInputExtCount |
( |
|
) |
const [pure virtual] |
Get the number of supported file extension for input file.
- Returns:
- The number of supported file extension for reading.
virtual const char* eLynx::Image::IImageFileFormat::GetInputExt |
( |
size_t |
iIndex |
) |
const [pure virtual] |
Get the ith supported file extension for input file.
- Parameters:
-
- Returns:
- The const reference pointer on extension, NULL if bad index.
virtual bool eLynx::Image::IImageFileFormat::IsSupported |
( |
const char * |
iprFilename, |
|
|
ImageFileInfo & |
oInfo, |
|
|
bool |
ibPreview = false | |
|
) |
| | const [pure virtual] |
Check is the file is supported by this format. It checks filename extension and file header integrity. Be carefull, file can be valid but not supported !
- Parameters:
-
| iprFilename | The filename of the file to check. |
| oInfo | Informations that could be retrieved from file. |
| ibPreview | Set to true if preview is requested in informations. |
- Returns:
- true if file can be loaded with Import, false otherwise.
virtual bool eLynx::Image::IImageFileFormat::GeneratePreview |
( |
const char * |
iprFilenameIn, |
|
|
const char * |
iprFilenameOut, |
|
|
ProgressNotifier & |
iNotifier | |
|
) |
| | const [pure virtual] |
Generate a preview file from source file.
- Parameters:
-
| iprFilenameIn | The input file name, file to be readed. |
| iprFilenameOut | The preview file name, file to be writen. |
| iNotifier | a notifier for progression and cancel. |
- Returns:
- true if preview has been generated, false otherwise.
Import an image from filename.
- Parameters:
-
| oImage | The variant image receiving the new image implementation. |
| iprFilename | The image filename to create. |
| oInfo | Informations that could be retrieved from file. |
| iNotifier | a notifier for progression and cancel. |
- Returns:
- true if file has been loaded, false otherwise.
virtual size_t eLynx::Image::IImageFileFormat::GetOutputExtCount |
( |
|
) |
const [pure virtual] |
Get the number of supported file extension for output file.
- Returns:
- The number of supported file extension for writing.
virtual const char* eLynx::Image::IImageFileFormat::GetOutputExt |
( |
size_t |
iIndex |
) |
const [pure virtual] |
Get the ith supported file extension for output file.
- Parameters:
-
- Returns:
- The const reference pointer on extension, NULL if bad index.
virtual size_t eLynx::Image::IImageFileFormat::GetOutputImageFormatCount |
( |
|
) |
const [pure virtual] |
Get the number of supported image pixel format for output file.
- Returns:
- The number of supported image pixel format for writing.
virtual EPixelFormat eLynx::Image::IImageFileFormat::GetOutputPixelFormat |
( |
size_t |
iIndex |
) |
const [pure virtual] |
Get the ith supported format for export.
- Parameters:
-
- Returns:
- the ith supported pixel format.
Export image to file.
- Parameters:
-
| iImage | The image to export. |
| iprFilename | The image filename. |
| iNotifier | a notifier for progression and cancel. |
| iprOptions | Some specific format options. |
- Returns:
- true if image has been saved, false otherwise.
The documentation for this class was generated from the following file: