qt-interest@trolltech.com
[Top] [All Lists]

Re: 32bit RGB RAW to QImage

Subject: Re: 32bit RGB RAW to QImage
From:
Date: Tue, 11 Jul 2006 18:55:21 +0200
RAW RGB isnt supported by QImage::fromData...

here's some code:

tvc->openDevice();
if ( tvc->readFrame() ) {
QImage img=QImage::fromData(tvc->frame(),sizeof(tvc->frame()));
tvc->closeDevice();
gscene->addPixmap(QPixmap::fromImage(img));
}

here is some debugging info:

grabbing frame: 924x576 (2128896 bytes, 3696 bytes per line, 4 bytes
per px)
QPixmap::convertFromImage: Cannot convert a null image

gscene is QGraphicsScene

--
To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx with 
"unsubscribe" in the subject or the body.
List archive and information: http://lists.trolltech.com/qt-interest/

<Prev in Thread] Current Thread [Next in Thread>