Image::PNG::Const
# Get the constants you need: use Image::PNG::Const qw/PNG_TRANSFORM_INVERT_ALPHA PNG_COLOR_MASK_ALPHA/; # Get everything: use Image::PNG::Const ':all';
This module contains no functions, only constants.
This file contains constants extracted from the header file of the PNG library, png.h. The constants in this file are
png.h
Nothing is exported by default, but all the symbols in this module can be exported on request. There is one export tag, 'all', which exports all the symbols in this module:
use Image::PNG::Const ':all';
This Perl module was automatically created from png.h. To rebuild it, run the script "strip-constants.pl" in the top directory of the Image::PNG distribution. You need to have the Template module installed. You may need to edit the script somewhat, depending on your environment.
The template for creating Const.pm is in directory tmpl in the Image::PNG distribution. Its name is Const.pm.tmpl.
tmpl
Const.pm.tmpl
Ben Bullock, <bkb@cpan.org>
The Image::PNG package and associated files are copyright (C) 2013 Ben Bullock.
You can use, copy, modify and redistribute Image::PNG and associated files under the Perl Artistic Licence or the GNU General Public Licence.
There is a mailing list at http://groups.google.com/group/perlimagepng. It is not necessary to be a member of the list to post messages to the list or participate in discussions.
There is a bug tracker at https://github.com/benkasminbullock/Image-PNG/issues.
The distributed files are not the source code of the module. The source code lives in the "tmpl" directory of the distribution and the distribution is created via scripts.
To install Image::PNG, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Image::PNG
CPAN shell
perl -MCPAN -e shell install Image::PNG
For more information on module installation, please visit the detailed CPAN module installation guide.