[PyQt] writing to a QImage buffer

James Conger jlconger at yahoo.com
Thu Nov 13 01:00:01 GMT 2014


QImage.scanLine() returns a sip void * pointer to a memory block containing one row of the image. For performance reasons I would like to write pixel RGB data directly to that buffer from within my Python code. How do you convert the void * pointer to a r/w object such as a Python array? 

Many thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20141112/00b08860/attachment.html>


More information about the PyQt mailing list