Hello
I need to have this :
wxbitmap.getData()
There is now wximage.getdata() but not the same with wxbitmap !
Make this method would reduce my execution time from 0,23 s to 0,03 s !
(because only wxbitmap.ConvertToImage() take 0.2 s to execute )
Where can I ask the development team to create wxbitmap.getData() for the next version of wxPython ?
Thanks a lot !
FORTIN Nicolas wrote:
wxbitmap.getData()
There is now wximage.getdata() but not the same with wxbitmap !
Make this method would reduce my execution time from 0,23 s to 0,03 s !
(because only wxbitmap.ConvertToImage() take 0.2 s to execute )
Where can I ask the development team to create wxbitmap.getData() for the next version of wxPython ?
The trick is that wx.Bitmap is an abstraction around the system native Bitmap that can be a wide variety of formats. That being said, here's a note from Robin on this subject from a month or so ago:
In C++ there are some template classes/functions that can facilitate access to the platform specific data within a wxBitmap in an efficient way. I plan on working on getting those wrapped for wxPython after I finish a few other things, but I'm not sure how much of that efficiency I'll be able to preserve.
So you may have your wish soon.
-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@noaa.gov
Christopher Barker a écrit :
FORTIN Nicolas wrote:
wxbitmap.getData()
There is now wximage.getdata() but not the same with wxbitmap !
Make this method would reduce my execution time from 0,23 s to 0,03 s !
(because only wxbitmap.ConvertToImage() take 0.2 s to execute )
Where can I ask the development team to create wxbitmap.getData() for the next version of wxPython ?
The trick is that wx.Bitmap is an abstraction around the system native Bitmap that can be a wide variety of formats. That being said, here's a note from Robin on this subject from a month or so ago:
In C++ there are some template classes/functions that can facilitate access to the platform specific data within a wxBitmap in an efficient way. I plan on working on getting those wrapped for wxPython after I finish a few other things, but I'm not sure how much of that efficiency I'll be able to preserve.
So you may have your wish soon.
-Chris
Ok thank Chris
I will waiting then
-Nicolas from France