-then call the static function \helpref{wxBitmap::AddHandler}{wxbitmapaddhandler}. For example:
-
-{\small
-\begin{verbatim}
- #include <wx/pnghand.h>
- #include <wx/xpmhand.h>
- ...
- // Initialisation
- wxBitmap::AddHandler(new wxPNGFileHandler);
- wxBitmap::AddHandler(new wxXPMFileHandler);
- wxBitmap::AddHandler(new wxXPMDataHandler);
- ...
-\end{verbatim}
-}
-
-Assuming the handlers have been written correctly, you should now be able to load and save PNG files
-and XPM files using the usual wxBitmap API.