[wxPython-users] using wxImage in C++ python extension
Christopher Barker
Chris.Barker at noaa.gov
Tue Aug 15 11:19:36 PDT 2006
Robin,
Sorry to keep peppering you with little messages about this, but...
A couple months ago, you mentioned that you were trying to see if you
could expose some of the methods for manipulating wx.Bitmap data
directly. This would be a great application of that -- if we could just
pass a pointer from the Agg buffer straight into a wxBitmap, then there
would be no overhead at all. Of course, that would only work if the data
format was right, but if we're lucky, that might be the common use case.
Also, it would be great if that could also be accomplished through the
numpy array interface. Travis recently donated a patch to PIL that does
this:
http://mail.python.org/pipermail/image-sig/2006-July/003999.html
I imagine the code for wxBitmap and wxImage would look similar.
I'd like to get the array interface to be accepted by PointListHelper
and friends too. I have it in mind to write that code, but who knows
when I can get to it.
-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