GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
PDF::Builder::Resource::XObject::Image(3) User Contributed Perl Documentation PDF::Builder::Resource::XObject::Image(3)

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

Inherits from PDF::Builder::Resource::XObject

    $image = PDF::Builder::Resource::XObject::Image->new($pdf, $name)

Returns an image resource object.

    $width = $image->width()

Get the width (in points) of the image object.

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 = $image->height()

Get the height (in points) of the image object.

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!

    $image->smask($xobject)

Set the soft-mask image object.

    $image->mask(@color_range)
    $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)

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.
2025-04-19 perl v5.40.2

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.