+ my_horse_bmp = new wxBitmap( image );
+
+#if wxUSE_XPM
+ image.Destroy();
+
+ if ( !image.LoadFile( dir + wxString("horse.xpm"), wxBITMAP_TYPE_XPM ) )
+ wxLogError("Can't load XPM image");
+ else
+ my_horse_xpm = new wxBitmap( image );
+
+ if ( !image.SaveFile( dir + wxString("test.xpm"), wxBITMAP_TYPE_XPM ))
+ wxLogError("Can't save file");
+#endif