tk-photo.pl - display an Imager image under Tk
$ perl tk-photo.pl
Simple code to make a Tk::Photo object from an Imager image.
This works by:
write the image data to a scalar in PNG format
Base64 decode the data
read() it into the photo object, supplying the Base64 encoded data to the -data parameter.
-data
$Revision$
Tony Cook <tonyc@cpan.org>
To install Imager, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Imager
CPAN shell
perl -MCPAN -e shell install Imager
For more information on module installation, please visit the detailed CPAN module installation guide.