Property | Type | Description | |
---|---|---|---|
$centerX | integer | The position that the merge image is placed on top of the source image. | |
$centerY | integer | The position that the merge image is placed on top of the source image. | |
$mergeImage | Holds the merging image. | ||
$mergeImageHeight | integer | The height of the merge image. | |
$mergeImageWidth | integer | The width of the merge image. | |
$postMergeImageHeight | integer | The height of the merge image after it is merged. | |
$postMergeImageWidth | integer | The width of the merge image after it is merged. | |
$sourceImage | Holds the QrCode image. | ||
$sourceImageHeight | integer | The height of the source image. | |
$sourceImageWidth | integer | The width of the source image. |
Method | Description | |
---|---|---|
__construct ( |
Creates a new ImageMerge object. | |
merge ( $percentage ) : string | Returns an QrCode that has been merge with another image. |
Method | Description | |
---|---|---|
createImage ( ) : string | Creates a PNG Image. | |
setProperties ( $percentage ) | Sets the objects properties. |
Method | Description | |
---|---|---|
calculateCenter ( ) | Calculates the center of the source Image using the Merge image. | |
calculateOverlap ( float $percentage ) | Calculates the width of the merge image being placed on the source image. |
public __construct ( |
||
$sourceImage | Image The image that will be merged over. | |
$mergeImage | Image The image that will be used to merge with $sourceImage |
protected createImage ( ) : string | ||
return | string |
protected setProperties ( $percentage ) | ||
$percentage | float The percentage that the merge image should take up. |
protected int $centerX | ||
return | integer |
protected int $centerY | ||
return | integer |
protected Image,SimpleSoftwareIO\QrCode $mergeImage | ||
return |
protected int $mergeImageHeight | ||
return | integer |
protected int $mergeImageWidth | ||
return | integer |
protected int $postMergeImageHeight | ||
return | integer |
protected int $postMergeImageWidth | ||
return | integer |
protected Image,SimpleSoftwareIO\QrCode $sourceImage | ||
return |
protected int $sourceImageHeight | ||
return | integer |
protected int $sourceImageWidth | ||
return | integer |