I need to access the pixel data in a qimage object with PyQt4.
The .pixel() is too slow so the docs say to use the scanline() method.
In c++ I can get the pointer returned by the scanline() method and read/write the pixel RGB value from the buffer.
With Python I get the SIP voidptr object that points to the pixels buffer so I can only read the pixel RGB value using bytearray but I cannot change the value in the original pointer.
Any suggestions?