|
MaterialX 1.38.2
|
Abstract base class for file-system image loaders. More...
#include <ImageHandler.h>
Public Member Functions | |
| const StringSet & | supportedExtensions () const |
| Returns a list of supported extensions. More... | |
| virtual bool | saveImage (const FilePath &filePath, ConstImagePtr image, bool verticalFlip=false) |
| Save an image to the file system. More... | |
| virtual ImagePtr | loadImage (const FilePath &filePath) |
| Load an image from the file system. More... | |
Protected Attributes | |
| StringSet | _extensions |
Abstract base class for file-system image loaders.
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.