Bonjour,
pour lire un bitmap depuis une ressource il faut utiliser un wxBitmap
Voici ce que dit l'aide de wxWidget :
// an easy and portable way to create a bitmap
wxBitmap bmp(wxBITMAP(bmpname));
// which is roughly equivalent to the following
#if defined(__WXMSW__) || defined(__WXPM__)
wxBitmap bmp("bmpname", wxBITMAP_TYPE_RESOURCE);
#else // Unix
wxBitmap bmp(bmpname_xpm, wxBITMAP_TYPE_XPM);
#endif
Pour inclure ton image dans un fichier ressource pour qu'il soit linker à ton exe cherche sur ce site j'ai déjà vu un truc du genre ici.
Sinon autre possibilité tu transforme ton image bitmap en XPM tu inclus le fichier XPM a ton source avec un simple #include puis tu utilises le constructeur de wxBitmap suivant : wxBitmap(const char** bits)
Bien sur cette solution n'est valable que pour une image ayant un nombre de couleur assez réduit pour une photo ça marchera pas ou mal.
Pour l'utilisation et la transformation d'image va voir XPM Convert : soit ici soit sur mon site http://cfred.free.fr
A+
FredCL