81 #if QT_VERSION >= 0x040000 87 drawImage(x, y, image);
109 for (
int i = 0; i < nPixels; i++)
110 output[i] = 255 << 24 | pixels[i] << 16 | pixels[i] << 8 | pixels[i];
118 for (
int offset = 0, i = 0; i < nPixels; i++)
120 output[i] = 255 << 24 | pixels[
offset] << 16 | pixels[
offset + 1] << 8 | pixels[
offset + 2];
int width
The width of the image in pixels.
GLenum GLsizei GLenum GLenum const GLvoid * image
Data structure for the representation of 8-bit grayscale images and 24-bit RGB (or HSV) color images ...
unsigned char * pixels
The pointer to the the pixels.
CQTPainter(QPaintDevice *pd)
GLint GLint GLsizei GLsizei GLsizei GLint GLenum GLenum const GLvoid * pixels
int height
The height of the image in pixels.
ImageType type
The type of the image.
void WriteToBuffer(const CByteImage *pImage)
void DrawImage(const CByteImage *pImage, int x=0, int y=0)
unsigned char * m_pBuffer