#include <gfx_image_pixelformat.h>
Several functions use this helper structure to pass the image data to functions.
Public Types | |
using | PIXELTYPE = const Pix |
Public Member Functions | |
PixelConstBuffer ()=default | |
PixelConstBuffer (const PixelConstBuffer &src) | |
PixelConstBuffer (const PixelConstBuffer &src, Int offset) | |
PixelConstBuffer (const Pix *buffer, BITS inc) | |
PixelConstBuffer & | operator= (const PixelConstBuffer &src) |
Public Attributes | |
const Pix * | _buffer |
BITS | _inc |
|
default |
PixelConstBuffer | ( | const PixelConstBuffer & | src | ) |
Copy constructor.
PixelConstBuffer | ( | const PixelConstBuffer & | src, |
Int | offset | ||
) |
Copy constructor with alignment.
PixelConstBuffer | ( | const Pix * | buffer, |
BITS | inc | ||
) |
Constructs the helper object.
[in] | buffer | Pointer to the memory block of the pixel data. |
[in] | inc | Distance in number of bytes from one pixel to the next. For packed pixels this value is equal to BytesPerPixel(). |
PixelConstBuffer& operator= | ( | const PixelConstBuffer & | src | ) |
const Pix* _buffer |
BITS _inc |