[wxPython-users] Re: BitmapFromBuffer speed and proposal for
wx.Bitmap.CopyFromBuffer
Christopher Barker
Chris.Barker at noaa.gov
Mon Oct 30 11:06:31 PST 2006
Rob McMullen wrote:
> The CopyFromBuffer method becomes the fastest, and wx.BitmapFromBuffer
> speeds up to the same speed as the wx.ImageFromData +
> wx.BitmapFromImage.
Thanks for working on this -- but I'm still perplexed.
wx.ImageFromData + wx.BitmapFromImage.
should be creating at least one full extra copy of the data, and
BitmapFromBuffer should be creating none. Unless wx.BitmapFromImage
shares data between the Bitmap and Image when possible. But doesn't
wx.ImageFrom data make a copy anyway?
So wx.BitmapFromBuffer should be the fastest, but a notable amount.
weird.
-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