Re: NewFromPNGData

Mark Dootson <[email protected]> Thu, 24 Mar 2016 21:08:56 +0000
Newsgroups gmane.comp.lang.perl.wxperl
Message-ID <[email protected]>
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
>