Re: [PyQt] QImage from Python buffer

2008-02-24 Thread Phil Thompson
On Saturday 23 February 2008, Jeremy Sanders wrote: > Hi - > > Would it be possible to add support to create a QImage from a Python buffer > object? > > I want to be able to quickly convert numpy arrays to QImages for display. > Currently I have to convert the numpy to a string, then the string to

[PyQt] QImage from Python buffer

2008-02-23 Thread Jeremy Sanders
Hi - Would it be possible to add support to create a QImage from a Python buffer object? I want to be able to quickly convert numpy arrays to QImages for display. Currently I have to convert the numpy to a string, then the string to a QImage. it would be nice to do QImage(numpyarray.data, 100,