Function __global->_watermark_corner
Definitions
sources/galleries2.php
- Watermark the corner of an image.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $source | resource | No | No | required parameter | N/A | N/A | The image resource being watermarked |
| $watermark_url | URLPATH | No | No | required parameter | N/A | N/A | The URL to the watermark file |
| $x | BINARY | No | No | required parameter | N/A | N/A | Whether a right hand side corner is being watermarked |
| $y | BINARY | No | No | required parameter | N/A | N/A | Whether a bottom edge corner is being watermarked |
Preview
Code (PHP)
/**
* Watermark the corner of an image.
*
* @param resource $source The image resource being watermarked
* @param URLPATH $watermark_url The URL to the watermark file
* @param BINARY $x Whether a right hand side corner is being watermarked
* @param BINARY $y Whether a bottom edge corner is being watermarked
*/
function _watermark_corner($source, string $watermark_url, int $x, int $y)
* Watermark the corner of an image.
*
* @param resource $source The image resource being watermarked
* @param URLPATH $watermark_url The URL to the watermark file
* @param BINARY $x Whether a right hand side corner is being watermarked
* @param BINARY $y Whether a bottom edge corner is being watermarked
*/
function _watermark_corner($source, string $watermark_url, int $x, int $y)

