Manages a list of instances of CGUIImageDecoder.
More...
#include <GUIImageLoader.h>
Manages a list of instances of CGUIImageDecoder.
Each decoder decides on its own if it matches the file format. The decoders will also be sorted by an access counter in order to speed up access time to the most used decoders.
◆ AddDecoder()
Adds a decoder to the sorted list of accessible decoders.
- Parameters
-
pImageDecoder | Pointer to decoder to add. |
◆ AddSupportedFileExtensions()
Adds all supported filetypes for all registered decoders
- Parameters
-
kExtensions | stringlist containing file-extensions |
◆ CreateInstance()
static void CGUIImageLoader::CreateInstance |
( |
| ) |
|
|
static |
◆ DeleteInstance()
static void CGUIImageLoader::DeleteInstance |
( |
| ) |
|
|
static |
◆ LoadImg()
eC_Bool CGUIImageLoader::LoadImg |
( |
CGUIImageData & |
pImageData, |
|
|
const eC_String & |
kFilePath |
|
) |
| |
Method for loading an image. Decoders in the list will be requested to decode the file. The first one, which decodes the file will be used and no other decoder will be called.
- Parameters
-
pImageData | Pointer to the CGUIImageData object, which will include the image information. |
kFilePath | Path to the image file. |
- Returns
- False if load fails.
◆ CGUIComponentManager
The documentation for this class was generated from the following file: