I’m trying to generate a wxBitmap programmatically.
I create an empty wxBitmap, use that to make a wxMemoryDC, and then paint in my wxMemoryDC. In theory, this should modify my wxBitmap, right? It doesn’t seem to. The wxMemoryDC is definitely changing, but the wxBitmap is not. Here’s the source code for a real simple example:
http://pastie.textmate.org/208902
When you run it, it copies my simple graphic to the wxFrame’s wxDC with Blit – verifying that the wxMemoryDC looks right. However, but the DrawBitmap doesn’t seem to do anything. It’s as if the wxBitmap is just transparent. Could the wxMemoryDC be making a copy of my wxBitmap? And if so, how do I get the final wxBitmap out of it?
Help!
Gre7g