<html><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px"><div>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? </div><div><br></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-style: normal; background-color: transparent;">Many thanks.</div></div></body></html>