View on
MetaCPAN is shutting down
For details read Perl NOC. After June 25th this page will redirect to
Steve Simms > PDF-API2 > PDF::API2::Resource::XObject::Image



Annotate this POD


New  10
Open  12
View/Report Bugs
Module Version: 2.033   Source  


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


$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.


Set the soft-mask image object.


Set the mask to an image mask XObject or an array containing a range of colors to be applied as a color key mask.


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.


Set the number of bits used to represent each color component.

syntax highlighting: