[Qt-interest] display grayscale image?

kurt.korbatits at nokia.com kurt.korbatits at nokia.com
Wed Apr 28 00:55:18 CEST 2010


You should be able to wrap a QImage around the data.

QImage::QImage ( uchar * data, int width, int height, Format format )


Kurt Korbatits
Software Engineer
Nokia - Qt Development Frameworks



________________________________
From: qt-interest-bounces at trolltech.com [mailto:qt-interest-bounces at trolltech.com] On Behalf Of ext caius ligarius
Sent: Wednesday, April 28, 2010 8:45 AM
To: qt-interest at trolltech.com
Subject: [Qt-interest] display grayscale image?

Hi,

I am a first time user and am struggling to display a simple int* (512x512) grayscale image pointer.

I have looked at some examples but it is still not clear. Seems like one of the ways would be to create QGraphicsScene do an addPIxmap  and pass it to a QGraphicsView. My question is how do I add my 12Bit int* image buffer array which I already have in memory to addPixmap or is there some other way to do it?


Thanks,
Caius
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100428/6d3ec796/attachment.html 


More information about the Qt-interest-old mailing list