From 87be62964da7a1e0c9a0e71f45f8ecc6f7f2b56f Mon Sep 17 00:00:00 2001 From: Kalle Sommer Nielsen Date: Fri, 22 Mar 2013 19:01:40 +0000 Subject: [PATCH] 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 --- reference/image/examples.xml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/reference/image/examples.xml b/reference/image/examples.xml index 2fe0643473..a1cf772bc8 100644 --- a/reference/image/examples.xml +++ b/reference/image/examples.xml @@ -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); This example uses imagecopymerge 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.