1PDF::API2::Resource::XOUbsjeerctC:o:nItmraigbeu(t3e)d PePrDlF:D:oAcPuIm2e:n:tRaetsioounrce::XObject::Image(3)
2
3
4
6 PDF::API2::Resource::XObject::Image - Base class for external raster
7 image objects
8
10 $image = PDF::API2::Resource::XObject::Image->new($pdf, $name)
11 Returns an image resource object.
12
13 $width = $image->width($width)
14 Get or set the width value for the image object.
15
16 $height = $image->height($height)
17 Get or set the height value for the image object.
18
19 $image->smask($xobject)
20 Set the soft-mask image object.
21
22 $image->mask(@color_range)
23 $image->mask($xobject)
24 Set the mask to an image mask XObject or an array containing a
25 range of colors to be applied as a color key mask.
26
27 $image->colorspace($name)
28 $image->colorspace($array)
29 Set the color space used by the image. Depending on the color
30 space, this will either be just the name of the color space, or it
31 will be an array containing the color space and any required
32 parameters.
33
34 If passing an array, parameters must already be encoded as PDF
35 objects. The array itself may also be a PDF object. If not, one
36 will be created.
37
38 $image->bits_per_component($integer)
39 Set the number of bits used to represent each color component.
40
41
42
43perl v5.32.0 2020-07P-D2F8::API2::Resource::XObject::Image(3)