Image Stamp
Table of Contents
Introduction
The image stamp class allows you to stamp PNG, JPEG, JPEG2000 and GIF images.
Create an Instance
An instance could be created by simply passing an image instance to its constructor:
PHP
$image = \SetaPDF_Core_Image::getByPath('files/pdfs/camtown/Logo.png'); $imageStamp = new \SetaPDF_Stamper_Stamp_Image($image);
Configure Properties
Beside the general stamp properties the image stamp class offers following properties that allow you to define its dimensions:
getDimensions()
Get the stamp dimension.
getHeight()
Get the height of the image stamp.
getWidth()
Get the width of the image stamp.
setDimensions()
Set the dimensions of this stamp.
setHeight()
Set the individual height if the image stamp.
setWidth()
Set the individual width of the image stamp.