PDA

View Full Version : QPixmap replace white pixels by blacks



bunjee
20th August 2008, 01:41
Hey there,

I have a QPixmap.
I'd like to replace every single white pixels by black ones.

How can I do that ?

aamer4yu
20th August 2008, 05:12
Convert the pixmap into QImage and access each Pixel by QImage::pixel .

Then you can check if the pixel is white, change it to black :)