|
| LocalPng (const VRayImage *img, bool preserveAlpha=false) |
|
| LocalPng (const VRayImage *img, const VRayRenderer &renderer, bool preserveAlpha=false) |
| Same as the other constructor. The renderer is used to log error messages.
|
|
void * | getBuf () const |
| Returns a pointer to the image data.
|
|
size_t | getLen () const |
| Returns size of image data in bytes.
|
|
| operator size_t () const |
|
bool | saveToFile (const char *fileName) const |
| Write the data to disk.
|
|
bool | saveToFile (const std::string &fileName) const |
| This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
|
|
void | swap (CompressImage &ci) |
|
|
byte * | bufAddr |
|
size_t | bufSize |
|
◆ LocalPng()
VRay::LocalPng::LocalPng |
( |
const VRayImage * |
img, |
|
|
bool |
preserveAlpha = false |
|
) |
| |
|
inline |
Compression is performed in this constructor
- Parameters
-
img | The source image to compress. The source is not modified. |
preserveAlpha | You need to set this explicitly to true to keep the alpha channel in the PNG |
The documentation for this class was generated from the following file:
- /home/jenkins/ci/cgrepo/appsdk/VRay_SDK_CPP/include/vraysdk.hpp