51 : pixels( w * h * ch, 0 )
Simple pixel buffer for rasterized image data.
Definition: DtBitmapData.h:31
#define DT_DLL_VRVGRAPHICS
Contains DLL export macros.
Definition: vrvGraphics.h:19
int height
Image height in pixels.
Definition: DtBitmapData.h:35
DtBitmapData(int w, int h, int ch=4)
Construct with dimensions, pre-allocating the pixel buffer.
Definition: DtBitmapData.h:50
DtBitmapData()
Default constructor. Initializes to zero-size with 4 channels.
Definition: DtBitmapData.h:39
std::vector< uint8_t > pixels
Pixel buffer in RGBA format.
Definition: DtBitmapData.h:33
int channels
Bytes per pixel; typically 4 (RGBA).
Definition: DtBitmapData.h:36
int width
Image width in pixels.
Definition: DtBitmapData.h:34