Image Provider factory.
More...
#include <provider_factory.h>
|
|
static CL_PixelBuffer | try_load (const CL_String &filename, const CL_String &type=CL_String(), CL_VirtualDirectory directory=CL_VirtualDirectory(), CL_String *out_failure_reason=0) |
| Attempts to load an image file from 'filename', using the provider identified by 'type'. More...
|
|
static CL_PixelBuffer | load (const CL_String &filename, const CL_VirtualDirectory &directory, const CL_String &type=CL_String()) |
| Loads an image file from 'filename', using the provider. More...
|
|
static CL_PixelBuffer | load (const CL_String &fullname, const CL_String &type=CL_String()) |
|
static CL_PixelBuffer | load (CL_IODevice &file, const CL_String &type) |
|
static void | save (CL_PixelBuffer buffer, const CL_String &filename, CL_VirtualDirectory &directory, const CL_String &type=CL_String()) |
| Saves the given CL_PixelBuffer to the file given by 'filename'. More...
|
|
static void | save (CL_PixelBuffer buffer, const CL_String &fullname, const CL_String &type=CL_String()) |
|
static void | save (CL_PixelBuffer buffer, CL_IODevice &file, const CL_String &type) |
|
Loads an image file from 'filename', using the provider.
identified by 'type'.
If the type is an empty string, it uses the extension of the filename to determine what type it is.
The virtual directory will be used as a the source.
Saves the given CL_PixelBuffer to the file given by 'filename'.
If the type is an empty string, it uses the extension of the filename to determine what type it is
Attempts to load an image file from 'filename', using the provider identified by 'type'.
- Returns
- If the function fails to load the image, a null pixel buffer object is returned.
If the type is an empty string, it uses the extension of the filename to determine what type it is.
The virtual directory will be used as a the source.
Map of the class factories for each provider type.
The documentation for this class was generated from the following file: