enum | MImageFilterFormat
| kNoFormat
| | kHeightFieldBumpFormat
| | kNormalMapBumpFormat
| | kUnknownFormat
|
|
enum | MPixelType
|
| MImage ()
|
| ~MImage ()
|
MStatus | create (unsigned int width, unsigned int height, unsigned int channels = 4, MPixelType type = kByte )
|
MStatus | readFromFile ( MString pathname, MPixelType type = kByte )
|
MStatus | readFromTextureNode (const MObject & fileTextureObject, MPixelType type = kByte )
|
MStatus | getSize (unsigned int &width, unsigned int &height) const
|
MPixelType | pixelType () const
|
unsigned char* | pixels () const
|
float* | floatPixels () const
|
void | setPixels (unsigned char* pixels , unsigned int width, unsigned int height)
|
void | setFloatPixels (float* pixels , unsigned int width, unsigned int height, unsigned int channels = 4)
|
unsigned int | depth ()
|
MStatus | getDepthMapSize ( unsigned int &width, unsigned int &height ) const
|
MStatus | setDepthMap (float * depth , unsigned width, unsigned height )
|
MStatus | setDepthMap (const MFloatArray & depth , unsigned width, unsigned height )
|
float * | depthMap ( MStatus *ReturnStatus = NULL ) const
|
MStatus | readDepthMap ( MString pathname)
|
MStatus | resize (int width, int height, bool preserveAspectRatio = true)
|
static bool | filterExists ( MImageFilterFormat sourceFormat, MImageFilterFormat targetFormat)
|
MStatus | filter ( MImageFilterFormat sourceFormat, MImageFilterFormat targetFormat, double scale = 1.0, double offset = 0.0)
|
MStatus | writeToFile ( MString pathname, MString outputFormat = kIffStringDefault )
|
MStatus | writeToFileWithDepth ( MString pathname, MString outputFormat = kIffStringDefault, bool writeDepth = false )
|
MStatus | release ()
|
void | verticalFlip ()
|
void | setRGBA (bool rgbaFormat)
|
bool | isRGBA () const
|
bool | haveDepth () const
|
MStatus | convertPixelFormat ( MPixelType type, double scale = 1.0, double offset = 0.0)
|