Lightweight class for passing around a reference to a buffer of raw image data.
More...
#include <image.h>
|
| Image (unsigned char *pixels, int width, int height, int byteCount, bool hasAlpha=false) |
|
Lightweight class for passing around a reference to a buffer of raw image data.
Image is a wrapper around a buffer of RGB image data, along with metadata about it (width, height, bytes per row etc.). The underlying image data buffer is not owned by Image and its lifetime must exceed that of the referencing Image instance.
WebVfx::Image::Image |
( |
unsigned char * |
pixels, |
|
|
int |
width, |
|
|
int |
height, |
|
|
int |
byteCount, |
|
|
bool |
hasAlpha = false |
|
) |
| |
|
inline |
- Parameters
-
pixels | 24 bit RGB image data. Must be valid for the lifetime of the Image. |
width | Width of the image in pixels |
height | Height of the image in pixels |
byteCount | Number of bytes in the image. A row can have more than width * BytesPerPixel bytes. |
The documentation for this class was generated from the following files:
- webvfx/image.h
- webvfx/image.cpp