#include "Util/Types.H"
#include <qpixmap.h>
Go to the source code of this file.
Functions | |
QPixmap | convertToQPixmap (const Image< PixRGB< byte > > &img) |
convert Image<PixRGB<byte> > to QPixmap | |
QPixmap | convertToQPixmap (const Image< byte > &img) |
convert Image<byte> to QPixmap | |
Image< PixRGB< byte > > | convertToImage (const QPixmap &qpixm) |
convert QPixmap to Image<PixRGB<byte> > |
Functions to convert our images to QImage or QPixmap
Definition in file ImageConvert.H.
convert QPixmap to Image<PixRGB<byte> >
Definition at line 165 of file ImageConvert.C.
References ASSERT, Image< T >::beginw(), and NO_INIT.
Referenced by QtDisplayStream::setFrameNumber().
convert Image<byte> to QPixmap
NOTE that it's not practical to do a conversion to QImage, because QImage doesn't own its memory so we don't have a safe place to put the temporary storage
Definition at line 118 of file ImageConvert.C.
References Image< T >::begin(), Image< T >::end(), Image< T >::getHeight(), Image< T >::getSize(), and Image< T >::getWidth().
convert Image<PixRGB<byte> > to QPixmap
NOTE that it's not practical to do a conversion to QImage, because QImage doesn't own its memory so we don't have a safe place to put the temporary storage
Definition at line 71 of file ImageConvert.C.