I use code like this:
pixels = numpy.zeros((200, 300, 3), dtype=numpy.uint8)
//.. write data into the pixels array ..
im = Image.fromarray(pixels)
--Ned.
http://nedbatchelder.com
David Goldsmith wrote:
Hi! I've been over and over the handbook, tried everything I could think of,
an
Awesome, thanks Ned! FTR (in case it helps others): Ned's "solution" was,
formally, among the first things (if not the first thing) I tried, but...for my
RGB table, I was using a colormap salvaged from some previous work in matlab
using the scipy sub-package scipy.io.mio. All that data was in