Search code examples
wxwidgets

How to save some pictures into one image?


I draw some pictures with wxStaticbitmap in wxPanel. And now I want to save these pictures into one file, better to be image format. Is there any function I can call? Or how to do?

Thanks.


Solution

  • You need to take a screenshot of the window containing the bitmaps.

    Here is some detailed code showing how to do this - it is the second article down.

    http://forums.wxwidgets.org/viewtopic.php?p=32313