How to use wartermark in phalcon

dear all,

How to use water mark in phalcon. My current doesn't work.

$mark = 'img/watermark.png'; $image->watermark($mark, TRUE, TRUE);

any idea. plz??

edited Jul '16

https://docs.phalconphp.com/en/latest/api/Phalcon_Image_Adapter.html

public watermark (Phalcon\Image\Adapter $watermark, [unknown $offsetX], [unknown $offsetY], [unknown $opacity])

First argument should be an image adapter instance, while second and third integers for position



379

I need to call phalcon image adapter. thanks

$mark = new Phalcon\Image\Adapter\GD('img/watermark.png'); $image->watermark($mark, 270, 320);

https://docs.phalconphp.com/en/latest/api/Phalcon_Image_Adapter.html

```php public watermark (Phalcon\Image\Adapter $watermark, [unknown $offsetX], [unknown $offsetY], [unknown $opacity]) ```

First argument should be an image adapter instance, while second and third integers for position