diff options
Diffstat (limited to 'lib/PDF/Builder/Resource/XObject/Image/PNG.pm')
-rw-r--r-- | lib/PDF/Builder/Resource/XObject/Image/PNG.pm | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/lib/PDF/Builder/Resource/XObject/Image/PNG.pm b/lib/PDF/Builder/Resource/XObject/Image/PNG.pm index ae04d3a..f44a8f6 100644 --- a/lib/PDF/Builder/Resource/XObject/Image/PNG.pm +++ b/lib/PDF/Builder/Resource/XObject/Image/PNG.pm @@ -5,8 +5,8 @@ use base 'PDF::Builder::Resource::XObject::Image'; use strict; use warnings; -our $VERSION = '3.025'; # VERSION -our $LAST_UPDATE = '3.024'; # manually update whenever code is changed +our $VERSION = '3.026'; # VERSION +our $LAST_UPDATE = '3.026'; # manually update whenever code is changed use Compress::Zlib; use POSIX qw(ceil floor); @@ -24,9 +24,11 @@ Inherits from L<PDF::Builder::Resource::XObject::Image> =head1 METHODS -=over +=head2 new + + $res = PDF::Builder::Resource::XObject::Image::PNG->new($pdf, $file, %opts) -=item $res = PDF::Builder::Resource::XObject::Image::PNG->new($pdf, $file, %opts) +=over Returns a PNG-image object. C<$pdf> is the PDF object being added to, C<$file> is the input PNG file, and the optional C<$name> of the new parent image object @@ -51,6 +53,9 @@ This is the name you can give for the PNG image object. The default is Pxnnnn. =back +Remember that you need to invoke the image_png method from Builder.pm in +order to use this functionality. + =back =head2 Supported PNG types @@ -385,9 +390,11 @@ sub new { return($self); } -=over +=head2 usesLib + + $mode = $png->usesLib() -=item $mode = $png->usesLib() +=over Returns 1 if Image::PNG::Libpng installed and used, 0 if not installed, or -1 if installed but not used (nouseIPL option given to C<image_png>). |