Sat Feb 19 05:39:40 2011: Request 65881 was acted upon. Transaction: Correspondence added by mattia.bar...@libero.it Queue: Wx Subject: Re: [rt.cpan.org #65881] Export wxMemory{In,Out}putStream Broken in: 0.98 Severity: Wishlist Owner: Nobody Requestors: dol...@cpan.org Status: open Ticket <URL: http://rt.cpan.org/Ticket/Display.html?id=65881 >
On 18/02/11 21.47, Mark Dootson wrote: Hi, > Untested, but you may like to give the following a try > > my $jpegdata = <rawjepgdata> > open my $file, '<', \$jpegdata; > my $handler = Wx::JPEGHandler->new(); > my $image = Wx::Image->new(); > $handler->LoadFile( $image, $file ); The code above should work; using open my $fh, '<', \$data; my $img = Wx::Image->new( $fh, wxBITMAP_TYPE_JPEG ); should work as well (it's part of wxPerl test suite). Regards, Mattia