#include <qimage.h>
#include <qdict.h>
Go to the source code of this file.
Classes | |
struct | EmbedImage |
Functions | |
static const QImage & | qembed_findImage (const QString &name) |
Variables | |
static const QRgb | segmentation_data [] |
static struct EmbedImage | embed_image_vec [] |
static const QImage& qembed_findImage | ( | const QString & | name ) | [static] |
Definition at line 73 of file segmentation.h.
References EmbedImage::data, embed_image_vec, and TRUE.
{ static QDict<QImage> dict; QImage* img = dict.find( name ); if ( !img ) { for ( int i = 0; embed_image_vec[i].data; i++ ) { if ( strcmp(embed_image_vec[i].name, name.latin1()) == 0 ) { img = new QImage((uchar*)embed_image_vec[i].data, embed_image_vec[i].width, embed_image_vec[i].height, embed_image_vec[i].depth, (QRgb*)embed_image_vec[i].colorTable, embed_image_vec[i].numColors, QImage::BigEndian ); if ( embed_image_vec[i].alpha ) img->setAlphaBuffer( TRUE ); dict.insert( name, img ); break; } } if ( !img ) { static QImage dummy; return dummy; } } return *img; }
struct EmbedImage embed_image_vec[] [static] |
Referenced by qembed_findImage().
const QRgb segmentation_data[] [static] |
Definition at line 22 of file segmentation.h.