cvs: phpdoc /en/reference/image/functions imagefilledpolygon.xml imageftbbox.xml imagepolygon.xml

From: Date: Thu, 11 Sep 2008 09:38:50 +0000
Subject: cvs: phpdoc /en/reference/image/functions imagefilledpolygon.xml imageftbbox.xml imagepolygon.xml
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-2159@lists.php.net to get a copy of this message
kalle Thu Sep 11 09:38:50 2008 UTC Modified files: /phpdoc/en/reference/image/functions imagefilledpolygon.xml imageftbbox.xml imagepolygon.xml Log: * Fixed background usage on imagefilledpolygon and imagepolygon * Added missing paragraph on imageftbbox http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/image/functions/imagefilledpolygon.xml?r1=1.14&r2=1.15&diff_format=u Index: phpdoc/en/reference/image/functions/imagefilledpolygon.xml diff -u phpdoc/en/reference/image/functions/imagefilledpolygon.xml:1.14 phpdoc/en/reference/image/functions/imagefilledpolygon.xml:1.15 --- phpdoc/en/reference/image/functions/imagefilledpolygon.xml:1.14 Tue Aug 5 07:32:05 2008 +++ phpdoc/en/reference/image/functions/imagefilledpolygon.xml Thu Sep 11 09:38:50 2008 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.14 $ --> +<!-- $Revision: 1.15 $ --> <refentry xml:id="function.imagefilledpolygon" xmlns="http://docbook.org/ns/docbook"> <refnamediv> <refname>imagefilledpolygon</refname> @@ -80,10 +80,13 @@ // create image $image = imagecreatetruecolor(250, 250); -// some colors +// allocate colors $bg = imagecolorallocate($image, 200, 200, 200); $blue = imagecolorallocate($image, 0, 0, 255); +// fill the background +imagefilledrectangle($image, 0, 0, 249, 249, $bg); + // draw a polygon imagefilledpolygon($image, $values, 6, $blue); http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/image/functions/imageftbbox.xml?r1=1.11&r2=1.12&diff_format=u Index: phpdoc/en/reference/image/functions/imageftbbox.xml diff -u phpdoc/en/reference/image/functions/imageftbbox.xml:1.11 phpdoc/en/reference/image/functions/imageftbbox.xml:1.12 --- phpdoc/en/reference/image/functions/imageftbbox.xml:1.11 Thu Aug 28 19:03:15 2008 +++ phpdoc/en/reference/image/functions/imageftbbox.xml Thu Sep 11 09:38:50 2008 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.11 $ --> +<!-- $Revision: 1.12 $ --> <refentry xml:id='function.imageftbbox' xmlns="http://docbook.org/ns/docbook"> <refnamediv> <refname>imageftbbox</refname> @@ -15,6 +15,10 @@ <methodparam><type>string</type><parameter>text</parameter></methodparam> <methodparam choice="opt"><type>array</type><parameter>extrainfo</parameter></methodparam> </methodsynopsis> + <para> + This function calculates and returns the bounding box in pixels + for a FreeType text. + </para> </refsect1> <refsect1 role="parameters"> &reftitle.parameters; http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/image/functions/imagepolygon.xml?r1=1.16&r2=1.17&diff_format=u Index: phpdoc/en/reference/image/functions/imagepolygon.xml diff -u phpdoc/en/reference/image/functions/imagepolygon.xml:1.16 phpdoc/en/reference/image/functions/imagepolygon.xml:1.17 --- phpdoc/en/reference/image/functions/imagepolygon.xml:1.16 Thu Aug 28 19:03:15 2008 +++ phpdoc/en/reference/image/functions/imagepolygon.xml Thu Sep 11 09:38:50 2008 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.16 $ --> +<!-- $Revision: 1.17 $ --> <refentry xml:id="function.imagepolygon" xmlns="http://docbook.org/ns/docbook"> <refnamediv> <refname>imagepolygon</refname> @@ -91,9 +91,6 @@ // Create a blank image $image = imagecreatetruecolor(400, 300); -// Fill the background color -$bg = imagecolorallocate($image, 0, 0, 0); - // Allocate a color for the polygon $col_poly = imagecolorallocate($image, 255, 255, 255);

« previous php.doc.cvs (#2159) next »