VRay SDK for C++
Loading...
Searching...
No Matches
VRay::LocalPng Class Reference
Inheritance diagram for VRay::LocalPng:
VRay::CompressImage

Public Member Functions

 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.
 
- Public Member Functions inherited from VRay::CompressImage
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)
 

Additional Inherited Members

- Protected Attributes inherited from VRay::CompressImage
byte * bufAddr
 
size_t bufSize
 

Constructor & Destructor Documentation

◆ LocalPng()

VRay::LocalPng::LocalPng ( const VRayImage img,
bool  preserveAlpha = false 
)
inline

Compression is performed in this constructor

Parameters
imgThe source image to compress. The source is not modified.
preserveAlphaYou 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: