Marcus von Appen wrote:
surface.lock () buf = surface.get_buffer () array = Numeric.array (buf) surface.unlock () # Ayeeeeee, array and buf are still valid, but not their contents.
Seems to me that Numeric.array(buf) should be making a copy of the buffer's contents here, not keeping a pointer to its internals. I thought it was the purpose of PixelArray to provide an array-like view of a surface. In that case, there's no need for Numeric.array() to do so as well. -- Greg