I am trying to embed an animated GIF image into a wxWidgets C ++ program. I am able to load the image from the file and it looks like this:
wxAnimationCtrl * a = new wxAnimationCtrl (this, wxID_ANY, wxAnimation (wxT ("image.gif"), wxANIMATION_TYPE_ANY ), WxPoint (150,0)); One-> Play (); But I have a GIF picture in my Resource.rc. file, so that it can be compiled into executable. How do I do this?
You can try to use or function, load memory GIF resources, then Get that function and use that input stream and pass
Comments
Post a Comment