PDF::Builder::Resource::XObject::Image(3) | User Contributed Perl Documentation | PDF::Builder::Resource::XObject::Image(3) |
NAME¶
PDF::Builder::Resource::XObject::Image - Base class for external raster image objects
METHODS¶
new¶
$image = PDF::Builder::Resource::XObject::Image->new($pdf, $name)
width¶
$width = $image->width()
Note that this function also has the ability to set the width, by giving the new width (in points), but it appears that it never worked correctly. The set capability has been deprecated, and is scheduled to be removed some time after October, 2025. If you are using the width() method in some manner to set the image width, please let us know, so we can plan to keep it enabled!
height¶
$height = $image->height()
Note that this function also has the ability to set the height, by giving the new height (in points), but it appears that it never worked correctly. The set capability has been deprecated, and is scheduled to be removed some time after October, 2025. If you are using the height() method in some manner to set the image height, please let us know, so we can plan to keep it enabled!
smask¶
$image->smask($xobject)
mask¶
$image->mask(@color_range) $image->mask($xobject)
colorspace¶
$image->colorspace($name) $image->colorspace($array)
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.
bits_per_component¶
$image->bits_per_component($integer)
2024-03-08 | perl v5.40.0 |