#include <qsdrv.h>
Public Attributes | |
unsigned char * | ptr |
int | lo |
int | po |
int | co |
int | lines |
|
Byte offset between two succesive channels (Red, Green, Blue) |
|
Buffer capacity in lines. It means that buffer length is at last: len=lines*lo. |
|
Byte ofseet between two succesive lines in memory. ( scanline length in bytes ). |
|
Byte offset between two succesive pixels in memory. |
|
Pointer to the memory buffer, which will be filled with pixel values. Pixel at the position (x,y) has his position in memory calculated as below: char *ppos = ptr+y*lo+x*po or if it is RGB : char *rpos = ppos; char *gpos = rpos+co; char *bpos = gpos+co; Notice that all values: 'lo', 'po', 'co' may be lower than zero. Currently only RGB mode is supported. |