[wxPython-users] using wxImage in C++ python extension
Christopher Barker
Chris.Barker at noaa.gov
Mon Aug 14 11:25:47 PDT 2006
Andrew Murray wrote:
> To make the class offered by my extension more useful in a wxPython image
> display app that I use, I'd now like to add a method that returns a reference to
> a instance of a wxImage containing a representation of the member image data.
Perhaps the easiest way to do this is to have your code create a Buffer
Object. Then, in Python code, you can call wx.Image.SetData.
-Chris
--
Christopher Barker, Ph.D.
Oceanographer
NOAA/OR&R/HAZMAT (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