Re: NewFromPNGData
James Lynes <[email protected]> Thu, 24 Mar 2016 17:11:02 -0400
| Newsgroups | gmane.comp.lang.perl.wxperl |
|---|---|
| Message-ID | <CABPyseiLcuiYm7fPNrtiRogQEbHEz1AU-pk+aWAN_UNzcj2-VA@mail.gmail.com> |
Thanks Mark. I'll give it a try. James On Mar 24, 2016 5:09 PM, "Mark Dootson" <[email protected]> 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 >> >> > >