|
| | LocalBmp (const VRayImage *img, bool preserveAlpha=false, bool swapChannels=false) |
| |
|
| LocalBmp (const VRayImage *img, const VRayRenderer &renderer, bool preserveAlpha=false, bool swapChannels=false) |
| | Same as the other constructor. The renderer is used to log error messages.
|
| |
|
| LocalBmp (LocalBmp &&other) noexcept |
| |
|
void * | getBuf () const noexcept |
| | Returns a pointer to the image data.
|
| |
|
size_t | getLen () const noexcept |
| | Returns size of image data in bytes.
|
| |
|
| operator size_t () const noexcept |
| |
|
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) noexcept |
| |
|
|
| CompressImage (CompressImage &&ci) noexcept |
| |
|
void * | bufAddr |
| |
|
size_t | bufSize |
| |
◆ LocalBmp()
| VRay::LocalBmp::LocalBmp |
( |
const VRayImage * |
img, |
|
|
bool |
preserveAlpha = false, |
|
|
bool |
swapChannels = false |
|
) |
| |
|
inline |
Constructs a BMP format image in memory. This format does not compress image data.
- 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 BMP |
| swapChannels | If set to true, channel order will be BGR instead of RGB |
The documentation for this class was generated from the following file:
- /home/jenkins/ci/cgrepo/appsdk/VRay_SDK_CPP/include/vraysdk.hpp