VideoTools
|
A class that wraps a read-only image buffer with a few methods that are similar to those of Gr::ImageData. More...
#include <grimagedata.h>
Public Member Functions | |
ImageDataWrapper (const ImageBuffer &, int dx, int dy, int channels) | |
Constructor. | |
int | dx () const |
Returns the width. | |
int | dy () const |
Returns the height. | |
int | channels () const |
Returns the number of channels. | |
const unsigned char * | row (int y) const |
Returns a pointer to the y-th row. | |
unsigned char | r (int x, int y) const |
Returns the R-value for a point. | |
unsigned char | g (int x, int y) const |
Returns the G-value for a point. Returns the R-value if there is only one channel. | |
unsigned char | b (int x, int y) const |
Returns the B-value for a point. Returns the R-value if there is only one channel. | |
unsigned int | rgb (int x, int y) const |
Returns the colour of a pixel as rgb values packed into one integer. | |
A class that wraps a read-only image buffer with a few methods that are similar to those of Gr::ImageData.
Definition at line 245 of file grimagedata.h.