QImage::QImage ( uchar * yourdata, int w, int h, int depth, QRgb * colortable, int numColors, Endian bitOrder ) Constructs an image w pixels wide, h pixels high with a color depth of depth, that uses an existing memory buffer, yourdata.The buffer must remain valid throughout the life of the QImage. The image does not delete the buffer at destruction. If colortable is 0, a color table sufficient for numColors will be allocated (and destructed later). Note that yourdata must be 32-bit aligned.