MaterialX 1.38.2
Classes | Typedefs | Functions
Image.h File Reference

Image class. More...

#include <MaterialXRender/Export.h>
#include <MaterialXFormat/File.h>
#include <MaterialXCore/Types.h>

Go to the source code of this file.

Classes

class  Image
 Class representing an image in system memory. More...
 

Typedefs

using ImagePtr = shared_ptr< Image >
 A shared pointer to an image.
 
using ConstImagePtr = shared_ptr< const Image >
 A shared pointer to a const image.
 
using ImageMap = std::unordered_map< string, ImagePtr >
 A map from strings to images.
 
using ImageVec = std::vector< ImagePtr >
 A vetor of images.
 
using ImagePair = std::pair< ImagePtr, ImagePtr >
 A pair of images.
 
using ImageBufferDeallocator = std::function< void(void *)>
 A function to perform image buffer deallocation.
 

Functions

ImagePtr createUniformImage (unsigned int width, unsigned int height, unsigned int channelCount, Image::BaseType baseType, const Color4 &color)
 Create a uniform-color image with the given properties.
 
ImagePtr createImageStrip (const vector< ImagePtr > &imageVec)
 Create a horizontal image strip from a vector of images with identical resolutions and formats.
 
std::pair< unsigned int, unsigned int > getMaxDimensions (const vector< ImagePtr > &imageVec)
 Compute the maximum width and height of all images in the given vector.
 

Detailed Description

Image class.