[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: QPixmap::fill() slowness
From: Aurélien_Gâteau <aurelien.gateau () free ! fr>
Date: 2008-05-23 8:17:57
Message-ID: 48367DB5.2070805 () free ! fr
[Download RAW message or body]
Hello,
I need to create a fully transparent QPixmap. The way I do so is:
QPixmap pix(width, height);
pix.fill(Qt::transparent);
Unfortunately, this is quite slow.
Stepping through the code of QPixmap::fill() gets me in
QX11PixmapData::fill(). In this method I can see a very interesting
XRender version, but I don't get to use it because my pixmap depth is 24
, not 32. Instead, the code creates a transparent QImage and converts it
to a QPixmap.
Any idea how to get a transparent QPixmap in a faster way?
Aurélien
PS: I am using qt-copy
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic