wxImage/wxBitmap to/from TPixmap/Timage
BlitzMax Forums/Brucey's Modules/wxImage/wxBitmap to/from TPixmap/Timage
| ||
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.... |
| ||
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. |
| ||
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. |