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
