updating a wxBitmap: access to wxBitmap data possible?

Frans Meulenbroeks fransmeulenbroeks at yahoo.com
Tue Apr 1 04:08:58 PDT 2008


Hi,

For my project I have a bitmap (containing a jpeg)
that I want to update. Of course I can load the bitmap
directly, but if possible I would like to have a
smooth animation (e.g. so it looks like the new bitmap
slides in from the left). (roughly similar to what
powerpoint can do).

What would be the best way to achieve this?

I know I can access the data in a wxImage, and do a
partial update of the wxImage in a few timer steps. 
However in order to render it, I need to convert to a
wxBitmap (as wxDC does not have a DrawImage() only a
DrawBitmap() )
I fear this is going to be too expensive to get a nice
animated update. Is it possible to get access to the
pixel data in a wxBitmap? 

Or is there perhaps another way in which I can achieve
this.

Thanks alot!

Frans.


      ____________________________________________________________________________________
You rock. That's why Blockbuster's offering you one month of Blockbuster Total Access, No Cost.  
http://tc.deals.yahoo.com/tc/blockbuster/text5.com


More information about the wx-users mailing list