mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-15 16:38:54 +00:00
Merge usernote comment #102402 into the documentation
# The usernote was deleted hereafter git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@329881 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
8ef6f6f4eb
commit
87be62964d
1 changed files with 4 additions and 4 deletions
|
@ -101,7 +101,7 @@ $marge_bottom = 10;
|
|||
$sx = imagesx($stamp);
|
||||
$sy = imagesy($stamp);
|
||||
|
||||
// Merge the stamp onto our photo with an opacity (transparency) of 50%
|
||||
// Merge the stamp onto our photo with an opacity of 50%
|
||||
imagecopymerge($im, $stamp, imagesx($im) - $sx - $marge_right, imagesy($im) - $sy - $marge_bottom, 0, 0, imagesx($stamp), imagesy($stamp), 50);
|
||||
|
||||
// Save the image to file and free memory
|
||||
|
@ -120,9 +120,9 @@ imagedestroy($im);
|
|||
</example>
|
||||
This example uses <function>imagecopymerge</function> to merge the stamp
|
||||
with our original image. Using this we can set the opacity of our stamp -
|
||||
in our example we've set it to 50% opacity (another term for transparency).
|
||||
In practice this would be useful in copyright protection as semi-transparent
|
||||
watermarks are hard to remove yet allow viewers to see the image.
|
||||
in our example we've set it to 50% opacity. In practice this would be useful
|
||||
in copyright protection as semi-transparent watermarks are hard to remove
|
||||
yet allow viewers to see the image.
|
||||
</para>
|
||||
</section>
|
||||
</chapter>
|
||||
|
|
Loading…
Reference in a new issue