[PyKDE] Pixel from a QImage

Aurel (DustyDingo) W. aurel.w at gmail.com
Mon Apr 17 02:57:51 BST 2006


I updated now to PyQt-x11-gpl-snapshot-20060407 and to sip-4.4.1 and
QImage::pixel(int,int) works now, thanks.

The mature problem with all this Qt painting stuff is, that i must
convert a QPixmap into a QImage when i want to get any information
from pixel data, which is unbearable. It wouldn't be that
catastrophic, if conversion worked, but it doesn't. The pixel data is
falsified after converting it.

http://img100.imageshack.us/img100/9915/dephimage7xi.png <-- this is a
good example, the blue shapes should only have a plain color but in
fact they are full of patterns. The correctness of the color per pixel
changes from 8 to 4 bit for each color channel, which is sufficient
for my task, but generally it is a problem.

DustyDingo




More information about the PyQt mailing list