Mark: Good memory. That worked fine.
As I remember, the wxWidgets docs said that NewFromPNGData was a wrapper around Wx::Image calls which is what your suggestion shows. Thanks again, James On Thu, Mar 24, 2016 at 5:11 PM, James Lynes <jmlyne...@gmail.com> wrote: > Thanks Mark. I'll give it a try. > > James > On Mar 24, 2016 5:09 PM, "Mark Dootson" <mark.doot...@znix.com> wrote: > >> >> Not anywhere I can test this at the moment but as I recall: >> >> open my $fh, '<', \$buffer; >> >> my $bitmap = Wx::Bitmap->new( >> Wx::Image->new( $fh, wxBITMAP_TYPE_PNG) >> ); >> >> >> >> On 24/03/2016 10:44, James Lynes wrote: >> >>> Hello All: >>> >>> It seems that Wx::Bitmap NewFromPNGData is not wrapped(didn't see any >>> reference to it in bitmap.xs). >>> >>> wxWidgets defines it as: >>> >>> public: >>> // Create a new wxBitmap from the PNG data in the given buffer >>> static wxBitmap NewFromPNGData(const void* data, size_t size); >>> >>> What's involved in getting this wrapped? >>> >>> Thanks, >>> James >>> >>> >> >>