I have a raw image buffer in xRGB format, 4 bytes per pixel, no row padding. I’m unsure as to how to display it on screen – I played around with Qimage, QPixmap and QLabel, but only got blank screens for my efforts :(
QImage *img = new QImage(_data, _width, _height, QImage::Format_RGB32);
pix = QPixmap::fromImage(*img);
ui->lbImage->setPixmap(pix);
I also tried QImage::Format_ARGB32
Also, the image buffer is live – I get events detailing rectangles on the
image which need redrawing – is there a best (speedy) way to accommodate that?
For context on my question – the raw buffer is a remote desktop image from a
qemu spice server.
Sorry for my graphics ignorance,
thanks.
--
Lindsay
signature.asc
Description: This is a digitally signed message part.
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
