MaterialX 1.38.9
Loading...
Searching...
No Matches
StbImageLoader Class Reference

Stb image file loader. More...

#include <StbImageLoader.h>

Inheritance diagram for StbImageLoader:
ImageLoader

Public Member Functions

bool saveImage (const FilePath &filePath, ConstImagePtr image, bool verticalFlip=false) override
 Save an image to the file system. More...
 
ImagePtr loadImage (const FilePath &filePath) override
 Load an image from the file system. More...
 
- Public Member Functions inherited from ImageLoader
const StringSetsupportedExtensions () 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...
 

Static Public Member Functions

static StbImageLoaderPtr create ()
 Create a new stb image loader.
 

Additional Inherited Members

- Static Public Attributes inherited from ImageLoader
static const string BMP_EXTENSION = "bmp"
 Standard image file extensions.
 
static const string EXR_EXTENSION = "exr"
 
static const string GIF_EXTENSION = "gif"
 
static const string HDR_EXTENSION = "hdr"
 
static const string JPG_EXTENSION = "jpg"
 
static const string JPEG_EXTENSION = "jpeg"
 
static const string PIC_EXTENSION = "pic"
 
static const string PNG_EXTENSION = "png"
 
static const string PSD_EXTENSION = "psd"
 
static const string TGA_EXTENSION = "tga"
 
static const string TIF_EXTENSION = "tif"
 
static const string TIFF_EXTENSION = "tiff"
 
static const string TXT_EXTENSION = "txt"
 
static const string TX_EXTENSION = "tx"
 
static const string TXR_EXTENSION = "txr"
 
- Protected Attributes inherited from ImageLoader
StringSet _extensions
 

Detailed Description

Stb image file loader.

Member Function Documentation

◆ loadImage()

ImagePtr loadImage ( const FilePath filePath)
overridevirtual

Load an image from the file system.

Reimplemented from ImageLoader.

◆ saveImage()

MATERIALX_NAMESPACE_BEGIN bool saveImage ( const FilePath filePath,
ConstImagePtr  image,
bool  verticalFlip = false 
)
overridevirtual

Save an image to the file system.

Reimplemented from ImageLoader.


The documentation for this class was generated from the following files: