Perl Diver 2.31
Main Environment Variables Perl Default Values Perl Config - Summary Perl Config - Full Installed Modules List Directory uptime Docs

Module Documentation
Details and documentation about a specific module, including version and documentation (if available). Note that while links to perldoc.com and search.cpan.org are provided, the module may be part of a larger distribution. If you reach a File Not Found page on either site, please try the parent module.

PDF::API2::Resource::XObject::Image

Name PDF::API2::Resource::XObject::Image
Version 2.043
Located at /usr/local/share/perl5
File /usr/local/share/perl5/PDF/API2/Resource/XObject/Image.pm
Is Core No
Search CPAN for this module PDF::API2::Resource::XObject::Image
Documentation PDF::API2::Resource::XObject::Image
Module Details PDF::API2::Resource::XObject::Image

NAME

PDF::API2::Resource::XObject::Image - Base class for external raster image objects


METHODS

$image = PDF::API2::Resource::XObject::Image->new($pdf, $name)
Returns an image resource object.

$width = $image->width($width)
Get or set the width value for the image object.

$height = $image->height($height)
Get or set the height value for the image object.

$image->smask($xobject)
Set the soft-mask image object.

$image->mask(@color_range)
$image->mask($xobject)$image->mask($xobject)
Set the mask to an image mask XObject or an array containing a range of colors to be applied as a color key mask.

$image->colorspace($name)
$image->colorspace($array)$image->colorspace($array)
Set the color space used by the image. Depending on the color space, this will either be just the name of the color space, or it will be an array containing the color space and any required parameters.

If passing an array, parameters must already be encoded as PDF objects. The array itself may also be a PDF object. If not, one will be created.

$image->bits_per_component($integer)
Set the number of bits used to represent each color component.

Perl Diver brought to you by ScriptSolutions.com © 1997- 2024