[wxPython-users] using wxImage in C++ python extension
Christopher Barker
Chris.Barker at noaa.gov
Tue Aug 15 11:07:13 PDT 2006
Robin Dunn wrote:
> There is also the wx.Image.SetDataBuffer
> method, which will have the wxImage use the buffer passed in without
> making a copy, but if the buffer doesn't live as long as the image does
> it will likely cause a crash.
Another thought -- could I subclass wx.Image with one that holds a
reference to the Buffer that was passed in? Then they'd get destroyed
(or DECREF'd, anyway) together.
-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