Hi!
I would like to speed up the process of getting image data from my
custom C++ image processing extension into my wxPython image viewer
widget. So far, I have been taking the rather cumbersome route
C++ image -> Python string -> wx.Image -> wx.Bitmap
which is then blitted to the screen, but I would rather do
C++ image -> wx.Bitmap
directly using code similar to the recently added BitmapFromBuffer
functions. Does this make sense? And if it does - I would much rather
use the wxPython API from within my extension than the other way around,
but I'm not sure how to obtain the SWIG-wrapped C++ object through the
wxPython API to pass the newly generated wx.Bitmap back into wxPython
for blitting. ..
Any help is greatly appreciated,
Oliver
···
--
--------------------------------------------------------------------
F. Oliver Gathmann, Ph.D.
Director IT Unit
Cenix BioScience GmbH
Tatzberg 47 phone: +49 (351) 4173-136
D-01307 Dresden, Germany fax: +49 (351) 4173-109
fingerprint: 8E0E 9A64 A07E 0D1A D302 34C2 421A AE9F 4E13 A009
public key: http://www.cenix-bioscience.com/public_keys/gathmann.gpg
--------------------------------------------------------------------