HDK
|
#include <ImageHandler.h>
Public Member Functions | |
ImageLoader () | |
virtual | ~ImageLoader () |
const StringSet & | supportedExtensions () const |
virtual bool | saveImage (const FilePath &filePath, ConstImagePtr image, bool verticalFlip=false) |
virtual ImagePtr | loadImage (const FilePath &filePath) |
Static Public Attributes | |
static const string | BMP_EXTENSION |
Standard image file extensions. More... | |
static const string | EXR_EXTENSION |
static const string | GIF_EXTENSION |
static const string | HDR_EXTENSION |
static const string | JPG_EXTENSION |
static const string | JPEG_EXTENSION |
static const string | PIC_EXTENSION |
static const string | PNG_EXTENSION |
static const string | PSD_EXTENSION |
static const string | TGA_EXTENSION |
static const string | TIF_EXTENSION |
static const string | TIFF_EXTENSION |
static const string | TXT_EXTENSION |
static const string | TX_EXTENSION |
static const string | TXR_EXTENSION |
Protected Attributes | |
StringSet | _extensions |
Abstract base class for file-system image loaders
Definition at line 91 of file ImageHandler.h.
|
inline |
Definition at line 94 of file ImageHandler.h.
|
inlinevirtual |
Definition at line 97 of file ImageHandler.h.
Load an image from the file system. This method must be implemented by derived classes.
filePath | The requested image file path. |
Reimplemented in OiioImageLoader, and StbImageLoader.
|
virtual |
Save an image to the file system. This method must be implemented by derived classes.
filePath | File path to be written |
image | The image to be saved |
verticalFlip | Whether the image should be flipped in Y during save |
Reimplemented in OiioImageLoader, and StbImageLoader.
Returns a list of supported extensions
Definition at line 118 of file ImageHandler.h.
|
protected |
Definition at line 139 of file ImageHandler.h.
Standard image file extensions.
Definition at line 100 of file ImageHandler.h.
Definition at line 101 of file ImageHandler.h.
Definition at line 102 of file ImageHandler.h.
Definition at line 103 of file ImageHandler.h.
Definition at line 105 of file ImageHandler.h.
Definition at line 104 of file ImageHandler.h.
Definition at line 106 of file ImageHandler.h.
Definition at line 107 of file ImageHandler.h.
Definition at line 108 of file ImageHandler.h.
Definition at line 109 of file ImageHandler.h.
Definition at line 110 of file ImageHandler.h.
Definition at line 111 of file ImageHandler.h.
Definition at line 113 of file ImageHandler.h.
Definition at line 114 of file ImageHandler.h.
Definition at line 112 of file ImageHandler.h.