wxImage/wxBitmap to/from TPixmap/Timage

BlitzMax Forums/Brucey's Modules/wxImage/wxBitmap to/from TPixmap/Timage

Scaremonger(Posted 2012) [#1]
Are there any conversion functions between Blitzmax image types and wxMax types?

Primarily I am interested in how to display a frame loaded with Blitzmax LoadAnimImage() using wxPaintDC::drawBitmap()!

Secondly does anyone have an example of creating a wxImage on the fly?

Cheers in advance
Si....


Scaremonger(Posted 2012) [#2]
Found the answer to LoadAnimImage(): Load a .PNG into a wxImage and use it's getsubimage(x,y,w,h) method to extract a piece of it. This can then be converted into a wxBitmap and drawn to the window.


Scaremonger(Posted 2012) [#3]
Found the answer to LoadAnimImage(): Load a .PNG into a wxImage and use it's getsubimage(x,y,w,h) method to extract a piece of it. This can then be converted into a wxBitmap and drawn to the window.