From: Ryan Briones <ryanbriones@we...> - 2003-12-08 03:10:51
---------- Original Message ----------------------------------
From: "Bradley K. Embree" <bke@...>
Date: Sun, 7 Dec 2003 19:03:14 -0800
>> -----Original Message-----
>> From: wxperl-users-admin@...
>> [mailto:wxperl-users-admin@...]On Behalf Of Ryan
>> Sent: December 7, 2003 6:47 PM
>> To: wxperl-users@...
>> Subject: [wxperl-users] loading an image from a PAR dist
>> Hello wxperl-users,
>> I'm using wxPerl to write a program to load and display images. I
>> am also using PAR to make an executable, and "hide" the images
>> from the feeble minded. The problem i'm having is loading an
>> image from the PAR dist that the wxPerl program is packaged with.
>> PAR's, and Archive::Zip's, functions for accessing files appears
>> to be mostly reading in the file. Unfortunatly, it seems that
>> wxPerl's Wx::Bitmap and Wx::Image constructors only seem be happy
>> with loading an image from a file location. Any idea on how I
>> could accomplish this? Thanks for your help.
>> Ryan Briones
>Perhaps http://search.cpan.org/~tjenness/File-Temp-0.14/Temp.pm could help
>Read in the file using PAR's or Archive::Zip's functions, write to the temp
>file and pass the temp file to wxPerl's image functions. Bit of a hack but
>it would work.
Yeah, I was hoping for a way that didn't involve using the temp directory. I guess I should have mentioned that. Thanks, though. It may come down to that anyway.