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 107 of file ImageHandler.h.
|
inline |
Definition at line 110 of file ImageHandler.h.
|
inlinevirtual |
Definition at line 113 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.
|
inline |
Returns a list of supported extensions
Definition at line 134 of file ImageHandler.h.
|
protected |
Definition at line 155 of file ImageHandler.h.
|
static |
Standard image file extensions.
Definition at line 116 of file ImageHandler.h.
|
static |
Definition at line 117 of file ImageHandler.h.
|
static |
Definition at line 118 of file ImageHandler.h.
|
static |
Definition at line 119 of file ImageHandler.h.
|
static |
Definition at line 121 of file ImageHandler.h.
|
static |
Definition at line 120 of file ImageHandler.h.
|
static |
Definition at line 122 of file ImageHandler.h.
|
static |
Definition at line 123 of file ImageHandler.h.
|
static |
Definition at line 124 of file ImageHandler.h.
|
static |
Definition at line 125 of file ImageHandler.h.
|
static |
Definition at line 126 of file ImageHandler.h.
|
static |
Definition at line 127 of file ImageHandler.h.
|
static |
Definition at line 129 of file ImageHandler.h.
|
static |
Definition at line 130 of file ImageHandler.h.
|
static |
Definition at line 128 of file ImageHandler.h.