IC8 Python API:RLPy RIImage
From Reallusion Wiki!
Description
Provides experimental image operations for loading and saving files, reading dimensions, copying image data, and comparing images.
Constructor & Destructor
__init__ (self, *args, **kwargs)
Initializes a new ri image instance.
Parameters
- args
- kwargs
Member Functions
CopyImage (self)
Copy this image.
GetHeight (self)
Gets image height.
GetQImage (self)
Copy iimage to QImage and return the pointer.
GetWidth (self)
Gets image width.
IsSameImage (self, spImage, fTolerance=0.001)
Checks if current image and input image has same content.
Parameters
- spImage
- fTolerance (default: 0.001)
LoadFile (self, strPath)
Loads image with file path.
Parameters
- strPath
SaveFile (self, strPath)
Saves image to file path.
Parameters
- strPath
SetImageData (self, pQImage)
Apply QImage to iimage, may affect the material texture if iimage is get from material.
Parameters
- pQImage
Properties
thisown
Indicates whether this SWIG proxy owns the underlying C++ object.