Qt-interest Archive, March 2002
qt display image slices
Message 1 in thread
I have been developing an image slicer and am wondering about how to better
improve performance. The current method I use is I have my own image class
which contains a pointer to the raw slice image data, and convert it into a
pixmap by faking a pgm file and using loadFromData with either unsigned char
or RGB unsigned char triples. I was wondering how this would compare to some
gl commands for drawing pixels. The main thing I would like to maintain is
that I can create a pixmap of the slice, so I can copy it and paint any user
interactive stuff for draw points or rubber rectangles using the QPainter
class. Maybe another option to consider is drawing pixels on a GLwidget and
then use a painter on the widget itself. Anybody have experience with this?
Thanks in advance.
JD
Message 2 in thread
> I have been developing an image slicer
I am also interesting in displaying volumes' slice in a qt app.
> and am wondering about how to better
> improve performance. The current method I use is I have my own image class
> which contains a pointer to the raw slice image data, and convert it into a
> pixmap by faking a pgm file
Personnaly, I chose to directly load the slice in a QImage and then
convert to a Pixmap
This can be done without faking a pgm. I don't know which method is
better. I am interested in your opinion.
> and using loadFromData with either unsigned char
> or RGB unsigned char triples. I was wondering how this would compare to some
> gl commands for drawing pixels. The main thing I would like to maintain is
> that I can create a pixmap of the slice, so I can copy it and paint any user
> interactive stuff for draw points or rubber rectangles using the QPainter
> class. Maybe another option to consider is drawing pixels on a GLwidget and
> then use a painter on the widget itself. Anybody have experience with this?
> Thanks in advance.
>
> JD
>
> --
> List archive and information: http://qt-interest.trolltech.com
>
>
>