summaryrefslogtreecommitdiff
path: root/noncore/apps/opie-reader/hrule.cpp
blob: d697acbc634185dfb71a269f1ca37f7fe25154aa (plain)
1
2
3
4
5
6
7
8
9
10
11
#include <qimage.h>

QImage* hRule(int w, int h, unsigned char r, unsigned char g, unsigned char b)
{
////    qDebug("hrule [%d, %d]", w, h);
    QPixmap* qimage = new QPixmap(w, h);
    qimage->fill(QColor(r,g,b));
    QImage* ret = new QImage(qimage->convertToImage());
    delete qimage;
    return ret;
}