[wxpython-users] Gamma correction using wx.Image?

Christopher Barker Chris.Barker at noaa.gov
Mon May 19 09:46:41 PDT 2008


Robin Dunn wrote:
> You can create a wx.Image from a Python file-like object using 
> wx.ImageFromStream and then convert that to a wx.Bitmap.  Having a more 
> direct way to do it would certainly be nice though.

You can also pass the data from a PIL image into a wxImage with python 
strings (and buffers?).

Anyway, one way to improve this is to have wx understand the "array 
protocol" introduced by numpy -- it can be used to pass data between a 
numpy array and a PIL image now, and if wx implements it, then the same 
thing could be done with wxImages (and other wx types).

I believe is this on the list for a Google Summer of Code project, so we 
may get in a couple months.

-Chris



-- 
Christopher Barker, Ph.D.
Oceanographer

Emergency Response Division
NOAA/NOS/OR&R            (206) 526-6959   voice
7600 Sand Point Way NE   (206) 526-6329   fax
Seattle, WA  98115       (206) 526-6317   main reception

Chris.Barker at noaa.gov


More information about the wxpython-users mailing list