PDA

View Full Version : best way of reading and writing QImage pixels?



billconan
24th February 2010, 00:48
hello guys,

i have a data that i would like to write to an QImage. currently i use QImage. setpixel(). but it seems to be slow. i'm wondering if it is possible to write to the inner data of the QImage. thanks.

Bitto
24th February 2010, 09:23
Check out QImage::bits() - http://doc.qt.nokia.com/qimage.html#bits.