00001 #include <qimage.h> 00002 00003 QImage* hRule(int w, int h, unsigned char r, unsigned char g, unsigned char b) 00004 { 00006 QPixmap* qimage = new QPixmap(w, h); 00007 qimage->fill(QColor(r,g,b)); 00008 QImage* ret = new QImage(qimage->convertToImage()); 00009 delete qimage; 00010 return ret; 00011 }
1.4.2